Example #1
0
    // Use this for initialization
    void Start()
    {
        control = GetComponent<Control>();

        for (int i = 0; i < players.Length; ++i) {
            players[i].BroadcastMessage("SetPlayer", control.RegisterPlayer(playerControls[i], playerControllerIds[i]));
        }
    }
Example #2
0
    // Use this for initialization
    void Start()
    {
        control = GetComponent <Control>();

        for (int i = 0; i < players.Length; ++i)
        {
            players[i].BroadcastMessage("SetPlayer", control.RegisterPlayer(playerControls[i], playerControllerIds[i]));
        }
    }
Example #3
0
 void Start()
 {
     control = GameObject.FindGameObjectWithTag("Control").GetComponent<Control>();
     camara = GameObject.FindGameObjectWithTag("MainCamera").transform;
     player = control.RegisterPlayer(Control.ControllerType.WiiMote, 0);
 }
Example #4
0
 void Start()
 {
     control = GameObject.FindGameObjectWithTag("Control").GetComponent <Control>();
     camara  = GameObject.FindGameObjectWithTag("MainCamera").transform;
     player  = control.RegisterPlayer(Control.ControllerType.WiiMote, 0);
 }