private void Start() { GO = GetComponent <GameObj>(); panelHP = panels[0].GetComponentInChildren <Text>(); MultiSelectGO = GameObject.FindGameObjectWithTag("GameController"); control = MultiSelectGO.GetComponent <ResControl>(); }
// Start is called before the first frame update void Start() { GameObj thisGO = GetComponent <GameObj>(); GameObject ScriptResurs = GameObject.FindGameObjectWithTag("GameController"); ResControl resurs = ScriptResurs.GetComponent <ResControl>(); resurs.NewBuild(thisGO, thisGO.IsFriend()); }
private void Start() { thisGO = GetComponent <Unit>(); animator = GetComponent <Animator>(); unitControl = GetComponent <UnitControl>(); GameObject ScriptResurs = GameObject.FindGameObjectWithTag("GameController"); resurs = ScriptResurs.GetComponent <ResControl>(); StartCoroutine(AttackFoo()); }
void Start() { MaxHP = HP = 500; GoldCost = 500; Resistance = 4; thisGO = GetComponent <GameObj>(); GameObject GO = GameObject.FindGameObjectWithTag("GameController"); resources = GO.GetComponent <ResControl>(); StartCoroutine(Goldfarm()); }
// Start is called before the first frame update void Start() { MainCamera = Camera.main; animator = GetComponent <Animator>(); sprite = GetComponent <SpriteRenderer>(); agent = GetComponent <NavMeshAgent>(); controller = new NavMeshPath(); thisGO = GetComponent <Unit>(); hit.point = thisGO.transform.position; GameObject GO = GameObject.FindGameObjectWithTag("GameController"); resurs = GO.GetComponent <ResControl>(); resurs.NewUnit(thisGO, thisGO.IsFriend()); if (!thisGO.IsFriend()) { positionTower = resurs.TowerFriend.transform; } }
// Start is called before the first frame update void Start() { GO = GameObject.FindGameObjectWithTag("GameController"); res = GO.GetComponent <ResControl>(); }
private void Start() { resources = GetComponent <ResControl>(); }