override protected void Start() { base.Start(); inst_Camera = CameraManager.getInstance(); inst_Input = InputManager.getInstance(); inst_Anim = CharacterAnimationManager.getInstance(); s_navAgent = GetComponent <NavMeshAgent>(); s_characterController = GetComponent <CharacterController>(); inst_Input.OnStand += OnIdle; inst_Input.OnTranslate += OnTranslate; inst_Input.OnTranslate += (_, __) => NavigationCancel(); inst_Input.OnJump += OnJump; inst_Input.mouseLeftClickDown += OnSecondSkill; //inst_Input.firstSkill += OnFirstSkill; //inst_Input.secondSkill += OnSecondSkill; inst_Input.combinationSkill += OnCombinationSkill; s_navAgent.updatePosition = false; s_navAgent.updateRotation = false; if (GameObject.FindWithTag("HPBar") == null) { return; } hpBar = GameObject.FindWithTag("HPBar").GetComponent <Slider>(); gameOver = GameObject.Find("GameOver"); gameOver.SetActive(false); }
protected virtual void Start() { inst_Animation = CharacterAnimationManager.getInstance(); inst_Input = InputManager.getInstance(); inst_toolTipUI = InterationToolTip.getInstance(); bundle = new InteractionEventBundle { eventOwner = this, startAction = OnInteractionStart, cancelAction = OnInteractionCancel }; }