public void Start() { capsuleCollider = GetComponent <CapsuleCollider>(); if (unitFighterUI == null) { unitFighterUI = GameObject.Find(vars.UnitGroupUIManager).GetComponent <UIUnitFighterSelection>(); } unitFighterUI.unitGroupList.Add(this); transform.rotation = new Quaternion(0, 180, 180, 1); }
public void Start() { capsuleCollider = GetComponent<CapsuleCollider>(); if(unitFighterUI == null) { unitFighterUI = GameObject.Find(vars.UnitGroupUIManager).GetComponent<UIUnitFighterSelection>(); } unitFighterUI.unitGroupList.Add(this); transform.rotation = new Quaternion(0, 180, 180, 1); }