public OnTemporaryRouteCharacterNpcState(NpcCharacterBehaviour npcCharacter, Waypoint startingWaypoint, Action onCompleted, bool returnOnRoute) : base(npcCharacter)
    {
        this.onCompleted   = onCompleted;
        this.returnOnRoute = returnOnRoute;

        tempTracker = NpcCharacterBehaviour.gameObject.AddComponent <WaypointsTracker>();
        tempTracker.CurrentWaypoint = startingWaypoint;
    }
Beispiel #2
0
 protected override void Awake()
 {
     base.Awake();
     tracker = GetComponent <WaypointsTracker>();
 }