Beispiel #1
0
    public void OnMoveDown(Object _Obj, System.EventArgs _EventArg)
    {
        InputsManager.InputsVO lInputsVO = (InputsManager.InputsVO)_EventArg;

        if (lInputsVO.m_EPlayer == this.m_Player)
        {
            this.m_Move.y             = -this.m_MoveSpeed;
            this.rigidbody2D.velocity = this.m_Move;
        }
    }
Beispiel #2
0
    public void OnShoot(Object _Obj, System.EventArgs _EventArg)
    {
        InputsManager.InputsVO lInputsVO = (InputsManager.InputsVO)_EventArg;

        if (this.m_CanShoot)
        {
            if (lInputsVO.m_EPlayer == this.m_Player)
            {
                //this.m_ShootsHolderInstance.GetComponent<ShootsHolder>().Shoot(lInputsVO.m_EPlayer);
            }
            StartCoroutine(this.ShootTimerCoroutine());
        }
    }