void Start()
 {
     dataController    = GameObject.Find("GameData_Controller").GetComponent <GameSettings_Controller>();
     profileController = GameObject.Find("Profile_Controller").GetComponent <Profile_Controller>();
     menuButtons       = new List <Button>();
     currentState      = MenuState.MainMenu;
     CheckIfAlreadyLoggedIn();
     needsUpdate = true;
 }
Beispiel #2
0
        public Data_Controller(CardFactory factory_ref)
        {
            this.cardFactory = factory_ref;

            this.applicationData   = GameObject.Find("GameData_Controller").GetComponent <GameSettings_Controller>();
            this.profileData       = GameObject.Find("Profile_Controller").GetComponent <Profile_Controller>();
            this.playerKeyList     = new List <int>();
            this.playerDictionary  = new Dictionary <int, Player_Model>();
            this.numberOfOpponents = this.applicationData.GetOpponents();
            rng = new System.Random();
        }
    void Awake()
    {
        if (instance == null)
        {
            instance = this;
            //Képernyőarányok fixálása
            Screen.SetResolution(1280, 720, true);
        }

        else
        {
            Destroy(gameObject);
        }
    }