// Use this for initialization
 public void Start()
 {
     currentState    = CoreStates.Default;
     oldPoint        = transform.position;
     Movement        = GetComponent <Movement2D>();
     globalWaypoints = new Vector3[localWaypoints.Length];
     for (int i = 0; i < localWaypoints.Length; i++)
     {
         globalWaypoints[i] = localWaypoints[i] + transform.position;
     }
 }
Beispiel #2
0
 public override void Prepare()
 {
     coreInfo = GetParent().GetChild <CoreStates>();
 }
Beispiel #3
0
 public override void Prepare()
 {
     coreInfo = GetContainer().GetComponent <CoreStates>();
 }