void Awake() { HpBarManager[] managerList = managerHolder.GetComponents <HpBarManager>(); manager1 = managerList[0]; manager2 = managerList[1]; StartCoroutine(FadeIn()); Spawn(PlayerSelection.p1Select, PlayerSelection.p2Select); }
void Awake() { instance = this; }
void Awake() { _instance = this; hpBarPrefab = Resources.Load<GameObject>("HpBar"); damageHudTextPrefab = Resources.Load<GameObject>("DamageHudText"); }
void Awake() { _instance = this; }
//private Transform parentGo; private void Awake() { _instance = this; //parentGo = this.GetComponent<Transform>(); }
void Awake() { _instance = this; hpBarPrefab = Resources.Load <GameObject>("HpBar"); damageHudTextPrefab = Resources.Load <GameObject>("DamageHudText"); }