コード例 #1
0
    private void Awake()
    {
        pMove = GetComponent <Player_Movement>();
        pView = GetComponentInChildren <Player_View>();

        InputXButton += pMove.playerNum;
        InputYButton += pMove.playerNum;
        InputBButton += pMove.playerNum;
        InputAButton += pMove.playerNum;
    }
コード例 #2
0
    private void Awake()
    {
        body  = GetComponent <Rigidbody>();
        pView = GetComponentInChildren <Player_View>();
        GetComponent <Collider>().material = defaultPhysMat;
        anim = GetComponentInChildren <Animator>();

        InputX    += playerNum;
        InputY    += playerNum;
        InputJump += playerNum;
    }