Inheritance: MonoBehaviour
Esempio n. 1
0
    void Awake()
    {
        HpBarManager[] managerList = managerHolder.GetComponents <HpBarManager>();
        manager1 = managerList[0];
        manager2 = managerList[1];

        StartCoroutine(FadeIn());
        Spawn(PlayerSelection.p1Select, PlayerSelection.p2Select);
    }
Esempio n. 2
0
 void Awake()
 {
     instance = this;
 }
Esempio n. 3
0
 void Awake()
 {
     _instance = this;
     hpBarPrefab = Resources.Load<GameObject>("HpBar");
     damageHudTextPrefab = Resources.Load<GameObject>("DamageHudText");
 }
Esempio n. 4
0
	void Awake()
	{
		_instance = this;
	}
Esempio n. 5
0
    //private Transform parentGo;


    private void Awake()
    {
        _instance = this;
        //parentGo = this.GetComponent<Transform>();
    }
Esempio n. 6
0
 void Awake()
 {
     _instance           = this;
     hpBarPrefab         = Resources.Load <GameObject>("HpBar");
     damageHudTextPrefab = Resources.Load <GameObject>("DamageHudText");
 }