void Start() { gearType = "Connon"; state = ConnonState.connon; connonEnable = true; targetPosition = target.transform.position; timerID = uint.MaxValue; hasFirePerson = false; EventDispatcher.AddEventListener<MonoBehaviour>(Events.GearEvent.MotorHandleEnd, ReturnGround); }
void Start() { gearType = "Connon"; state = ConnonState.connon; connonEnable = true; targetPosition = target.transform.position; timerID = uint.MaxValue; hasFirePerson = false; EventDispatcher.AddEventListener <MonoBehaviour>(Events.GearEvent.MotorHandleEnd, ReturnGround); }
public void SetState() { state = ConnonState.catapult; if (MainUILogicManager.Instance != null) { MainUILogicManager.Instance.IsAttackable = false; } MogoWorld.thePlayer.CleanCharging(); MogoWorld.thePlayer.ClearSkill(); MogoWorld.thePlayer.ChangeMotionState(MotionState.ROLL); MogoWorld.thePlayer.motor.enableStick = false; }
public void SetState() { state = ConnonState.catapult; if (MainUILogicManager.Instance != null) MainUILogicManager.Instance.IsAttackable = false; MogoWorld.thePlayer.CleanCharging(); MogoWorld.thePlayer.ClearSkill(); MogoWorld.thePlayer.ChangeMotionState(MotionState.ROLL); MogoWorld.thePlayer.motor.enableStick = false; }