// Start is called before the first frame update
 void Start()
 {
     seeker       = GetComponent <Seeker>();
     targetOffset = new Vector2(Random.Range(-1f, 1f), Random.Range(-1f, 1f)).normalized *randRadiusAroundPoint;
     depotOffset  = new Vector2(Random.Range(-1f, 1f), Random.Range(-1f, 1f)).normalized *randRadiusAroundDepot;
     rotater      = GetComponentInChildren <RotateToTree>();
     rotater.tree = _currMoveTarget;
 }
示例#2
0
 // Start is called before the first frame update
 void Start()
 {
     seeker  = GetComponent <Seeker>();
     rotater = GetComponentInChildren <RotateToTree>();
 }
 // Start is called before the first frame update
 void Start()
 {
     currHealth = maxHealth;
     seeker     = GetComponent <Seeker>();
     rotater    = GetComponentInChildren <RotateToTree>();
 }