Пример #1
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();
        }
        public static Module_Controller CreateModuleController(GameState_Controller in_gameModule, CardFactory factory, Client client)
        {
            if (instance == null)
            {
                instance = new Module_Controller(in_gameModule, factory, client);
            }

            return(instance);
        }