示例#1
0
    /*public static void LoadScene(string sceneName, bool persistPlayer = true)
     * {
     *  if (persistPlayer)
     *      DontDestroyOnLoad(Player);
     *  else
     *  {
     *      Destroy(Player);
     *      _player = null;
     *  }
     *
     *  Application.LoadLevel(sceneName);
     *
     *  FindPlayer();
     *  FindCamera();
     * }*/


    void Update()
    {
        /*ButtonCheck*/
        if (Controls.ShootInputDown(Players[0]))
        {
            Debug.Log("P1 ATTACK");
        }
        if (Controls.NextWeaponInputDown())
        {
            Debug.Log("P1 SPECIAL");
        }
        if (Controls.JumpInputDown())
        {
            Debug.Log("P1 JUMP");
        }
        if (Controls.PrevWeaponInputDown())
        {
            Debug.Log("P1 SHIELD");
        }
        if (Controls.AimUpInputDown(Players[0]))
        {
            Debug.Log("P1 ENHANCE");
        }
        if (Controls.AimDownInputDown(Players[0]))
        {
            Debug.Log("P1 SUPER");
        }
        if (Controls.pauseInputDown(Players[0]))
        {
            Debug.Log("PAUSE");
        }
    }