Horje
how to make dissapear an object in unity Code Example
how to make dissapear an object in unity
public class Player : MonoBehaviour
{
    //Set this game object by dragging on UI
    public GameObject body;

    private void OnCollisionEnter2D(Collision2D other) {
      if(body != null){
        body.GetComponent<Renderer>().enabled = false;
        Destroy(body);
      }
    }
}




Csharp

Related
how to reference a local file c# Code Example how to reference a local file c# Code Example
@using System,System.Core Code Example @using System,System.Core Code Example
wpf onpropertychanged not working Code Example wpf onpropertychanged not working Code Example
C# Check if variables  are equal Code Example C# Check if variables are equal Code Example
unity timer Code Example unity timer Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11