Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        obj         = GameObject.Find("PlayerVal").GetComponent <PlayerInGame>();
        controllers = FindObjectOfType <ControllerPoll>();

        for (int i = 0; i < 4; i++)
        {
            selectSprites[i]   = GameObject.Find("Player" + (i + 1) + "Select").GetComponent <SpriteRenderer>();
            unselectSprites[i] = GameObject.Find("Player" + (i + 1) + "Unselect").GetComponent <SpriteRenderer>();
        }
    }
Exemplo n.º 2
0
 void Start()
 {
     conPoll = GameObject.FindObjectOfType <ControllerPoll> ();
 }