Пример #1
0
	void Awake()
	{
		moveRangeCollider = transform.Find("MoveRangeCollider").gameObject.GetComponent<MoveRangeCollider>();
		unitHealth = GetComponent<UnitHealth>();
		inAttackRange = false;
		inRangeList = new List<GameObject>();
	}
Пример #2
0
 void Awake()
 {
     moveRangeCollider = transform.Find("MoveRangeCollider").gameObject.GetComponent <MoveRangeCollider>();
     unitHealth        = GetComponent <UnitHealth>();
     inAttackRange     = false;
     inRangeList       = new List <GameObject>();
 }