示例#1
0
    void Awake()
    {
        player1    = GameObject.Find("Player1");
        player2    = GameObject.Find("Player2");
        p2controll = player2.GetComponent <p2Controller> ();

        player1Stats = GameObject.Find("P1StatSceneManager");
        p1Stats      = player1Stats.GetComponent <p1StatsCalc> ();
    }
示例#2
0
 void Awake()
 {
     player1Stats = GameObject.Find("P1StatSceneManager");
     p1Stats      = player1Stats.GetComponent <p1StatsCalc> ();
 }