Exemple #1
0
    // Hide paintable indicator when not touching player
    private void OnTriggerExit2D(Collider2D collision)
    {
        painter Painter = collision.gameObject.GetComponent <painter>();

        if (Painter != null)
        {
            show_indicator = false;
        }
    }
Exemple #2
0
 void Awake()
 {
     _instance = this;
 }