示例#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>();
 }