Ejemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        _game = GameObject.Find("GameManager").GetComponent<GameManager>();

        gameObject.name = (myself) ? "PlayerMe" : "PlayerOpponent";
        if (!myself)
        {
            _opponentsPrompt = _game.GenerateOpponentsText();
            _opponentsText = _opponentsPrompt.transform.parent;
            _game.SetOtherPlayer(this);
        }
        _ready = true;
    }