// 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; } }
public override void Prepare() { coreInfo = GetParent().GetChild <CoreStates>(); }
public override void Prepare() { coreInfo = GetContainer().GetComponent <CoreStates>(); }