Ejemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     rgb       = GameObject.Find("Player").GetComponent <Rigidbody2D>();
     plyMVT    = GameObject.Find("Player").GetComponent <PlayerMovement>();
     dPly      = GameObject.Find("Player").GetComponent <DashPlayer>();
     plyAttack = GameObject.Find("Player").GetComponent <PlayerAttack>();
 }
Ejemplo n.º 2
0
    private void Awake()
    {
        m_MoveBehaviour   = GetComponent <MovePlayer>();
        m_JumpBehaviour   = GetComponent <JumpPlayer>();
        m_DashBehaviour   = GetComponent <DashPlayer>();
        m_AttackBehaviour = GetComponent <AttackPlayer>();

        //m_PlayerInput = GetComponent<PlayerInput>();
        //m_JumpAction = m_PlayerInput.actions["Jump"];
    }