private void OnEnable() { _mystate = CharCoordinatorStates.NotInitialized; _myIchar = GetComponent <ICharacterAnim>(); character = GetComponent <Dweller3rdPerson>(); agent = GetComponent <NavMeshAgent>(); }
void Awake() { _myGuy = GetComponent <ICharacterAnim>(); if (_myGuy == null) { _myGuy = GetComponentInParent <ICharacterAnim>(); } }
private new void Start() { _myI = GetComponent <ICharacterAnim>(); base.Start(); }
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); } } }