Esempio n. 1
0
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
Esempio n. 2
0
    void OnTriggerExit(Collider other)
    {
        PlayerAtributes player = other.GetComponent <PlayerAtributes> ();

        if (player && player.targetActivator == this)
        {
            player.targetActivator = null;
        }
    }