Пример #1
0
 void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
Пример #2
0
    void OnTriggerExit(Collider other)
    {
        PlayerAtributes player = other.GetComponent <PlayerAtributes> ();

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