Пример #1
0
 void Start()
 {
     player = FindObjectOfType <PlayerMains>();
 }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     player    = Player.FindObjectOfType <PlayerMains>();
     text.text = (player.Ammo).ToString() + " / " + (player.ammo_cap).ToString();
 }
Пример #3
0
 //Enemy AI
 void Awake()
 {
     instance = this;
 }