Esempio n. 1
0
    //----------------------------------------------------------------------
    // コンストラクタ
    //----------------------------------------------------------------------
    // @Param	none
    // @Return	none
    // @Date	2014/10/31  @Update 2014/10/31  @Author T.Kawashita
    //----------------------------------------------------------------------
    void Awake()
    {
        m_soccerBallManager = GameObject.Find("BallGameObject").GetComponent <CSoccerBallManager>();
        CPlayerManager.SetData();

        m_player1Script = GameObject.Find("P1&P2").transform.FindChild("Player1").transform.FindChild("player").GetComponent <CPlayer1> ();
        m_player2Script = GameObject.Find("P1&P2").transform.FindChild("Player2").transform.FindChild("player").GetComponent <CPlayer2> ();
        m_player3Script = GameObject.Find("P3&P4").transform.FindChild("Player3").transform.FindChild("player").GetComponent <CPlayer3> ();
        m_player4Script = GameObject.Find("P3&P4").transform.FindChild("Player4").transform.FindChild("player").GetComponent <CPlayer4> ();
    }
 //----------------------------------------------------------------------
 // ゲームのリスタート
 //----------------------------------------------------------------------
 // @Param	none
 // @Return	none
 // @Date	2014/12/9  @Update 2014/12/9  @Author T.Kawashita
 //----------------------------------------------------------------------
 public static void RestartGame()
 {
     CSoccerBallManager.Restart();
     CGameManager.m_soundPlayer.PlaySE("game/kickoff");
 }