Beispiel #1
0
    // Use this for initialization
    void Start()
    {
        player = GameObject.FindWithTag("Player").GetComponent<Player>();
        player.setListener(this);
        isPlayersTurn = true;

        enemy = GameObject.FindWithTag("Enemy").GetComponent<Enemy>();
        enemy.setListener(this);
    }