Exemple #1
0
 private void OnEnable()
 {
     _mystate  = CharCoordinatorStates.NotInitialized;
     _myIchar  = GetComponent <ICharacterAnim>();
     character = GetComponent <Dweller3rdPerson>();
     agent     = GetComponent <NavMeshAgent>();
 }
Exemple #2
0
 void Awake()
 {
     _myGuy = GetComponent <ICharacterAnim>();
     if (_myGuy == null)
     {
         _myGuy = GetComponentInParent <ICharacterAnim>();
     }
 }
 private new void Start()
 {
     _myI = GetComponent <ICharacterAnim>();
     base.Start();
 }
Exemple #4
0
 public BHG_Task(string actionName, ICharacterAnim theCharacter, DeliveryItem theContextItem)
 {
     TheActionName  = actionName;
     TheCharacter   = theCharacter;
     TheContextItem = theContextItem;
 }
    public void InitActionCTRL(GameEnums.TaskSequenceType argSequenceType, ICharacterAnim argBunny, ICharacterAnim argDweller, DeliveryItem argContextItem)
    {
        _CurSequenceType = argSequenceType;
        MyBunny          = argBunny;
        MyDweller        = argDweller;

        MyContextItem = argContextItem;
        if (_CurSequenceType == GameEnums.TaskSequenceType.Wrongfloor)
        {
            MyBunny.AnimTrigger("Actions");
            MyDweller.AnimTrigger("Actions");
            MAkeWrongFloorTAsk();
            ITaskAction task = taskSystem.RequestNextTask();
            if (task != null)
            {
                ExecuteTask(task);
            }
        }
        else
        if (_CurSequenceType == GameEnums.TaskSequenceType.CutScene)
        {
            MyDweller.AnimTrigger("MoveOn");
            //  MAkeTasks();
            // TheCallBackAfterAnimStetends();
        }
        else
        if (_CurSequenceType == GameEnums.TaskSequenceType.Dweller_toss_Bunny)
        {
            MyBunny.AnimTrigger("Actions");
            MyDweller.AnimTrigger("Actions");
            MAkeDweller_toss_Bunny();
            ITaskAction task = taskSystem.RequestNextTask();
            if (task != null)
            {
                ExecuteTask(task);
            }
        }
        else
        if (_CurSequenceType == GameEnums.TaskSequenceType.Bunny_tossDweller)
        {
            MyBunny.AnimTrigger("Actions");
            MyDweller.AnimTrigger("Actions");
            MAkeBunnyTossDweller();

            // TheCallBackAfterAnimStetends();
            ITaskAction task = taskSystem.RequestNextTask();
            if (task != null)
            {
                ExecuteTask(task);
            }
        }
        else
        if (_CurSequenceType == GameEnums.TaskSequenceType.TowWayExchange)
        {
            MyBunny.AnimTrigger("Actions");
            MyDweller.AnimTrigger("Actions");

            MakeToss2wayTAsk();
            // TheCallBackAfterAnimStetends();
            ITaskAction task = taskSystem.RequestNextTask();
            if (task != null)
            {
                ExecuteTask(task);
            }
        }
    }