Esempio n. 1
0
    void Awake()
    {
        if (Instance == null)
        {
            DontDestroyOnLoad(gameObject);
            Instance = this;

            this.turnController  = new TurnController();
            this.roundController = new RoundController();

            CreateStandardPlayers();
        }

        Instance.GetComponentInChildren <LevelLoader>().EndTransition();

        if (Instance != this)
        {
            Destroy(gameObject);
        }
    }