protected override bool GetInputData(ComandDataBase comandData) { ComandDataSelectWeapon cdsm = comandData as ComandDataSelectWeapon; if (cdsm != null) { return(true); } return(false); }
protected override bool GetInputData(ComandDataBase comandData) { ComandDataRun comandDataRun = comandData as ComandDataRun; if (comandDataRun != null) { return(true); } return(false); }
public void ComandGet(ComandDataBase comandData) { if (_stateController == null) { return; } if (_stateController.CurrentState == null) { return; } _stateController.CurrentState.AddCommandData(comandData); }
protected override bool GetInputData(ComandDataBase comandData) { ComandDataAim comandDataAim = comandData as ComandDataAim; if (comandDataAim != null) { StateController.WeaponModule.SetPressedFlags(comandDataAim.IsPrimaryPressed, comandDataAim.IsSecondaryPressed); return(true); } return(false); }
protected override bool GetInputData(ComandDataBase comandData) { ComandDataRotate comandDataRotate = comandData as ComandDataRotate; if (comandDataRotate != null) { _targetVector3 = comandDataRotate.LookAtVector3; //StartCommando(); return(true); } return(false); }
protected override bool GetInputData(ComandDataBase comandData) { ComandInDataShotted comandDataShotted = comandData as ComandInDataShotted; if (comandDataShotted != null) { Debug.Log(StateController.TransformModule.gameObject.name + " Shotted!"); //StateController.WeaponModule.SetPressedFlags(comandDataShotted.IsPrimaryPressed, comandDataAim.IsSecondaryPressed); return(true); //StartCommando(); } return(false); }
protected override bool GetInputData(ComandDataBase comandData) { ComandDataFall comandDatafall = comandData as ComandDataFall; if (comandDatafall != null) { _humanRigidbody = comandDatafall.HumanRigidbody; _groundedTimer = 2f; _gettingUpTimer = 2f; _startedToGetUp = false; return(true); } return(false); }
public void AddCommandData(ComandDataBase comandData) { CommandDataToProcessList.Add(comandData); }