/// <summary> /// Executes the the act() function of the state Move /// </summary> private void HandleState() { switch (playerState) { case State.IDLE: idleMove.Act(this); break; case State.RUN: runMove.Act(this); break; case State.WALLRUN_LEFT: wallRunMoveLeft.Act(this); break; case State.WALLRUN_RIGHT: wallrunMoveRight.Act(this); break; case State.CLIMB: ClimbMove.Act(this); break; case State.SLIDE: SlideMove.Act(this); break; case State.AIRBORNE: airborneMove.Act(this); break; } }
protected override void Awake() { base.Awake(); helpPageGo = transform.Find("HelpPage").gameObject; monsterPageGo = transform.Find("MonsterPage").gameObject; towerPageGo = transform.Find("TowerPage").gameObject; slideMoveHelpPage = transform.Find("HelpPage").Find("Scroll View").GetComponent <SlideMove>(); slideMoveTowerPage = transform.Find("TowerPage").Find("Scroll View").GetComponent <SlideMove>(); helpPanelTween = transform.DOLocalMoveX(0, 0.5f); helpPanelTween.SetAutoKill(false); helpPanelTween.Pause(); }