Наследование: MonoBehaviour
Пример #1
0
 DebugModuleCache(ModuleCreator moduleCreator,
                  IEqualityComparer <SbModule> sbModuleEqualityComparer,
                  IDispatcher mainThreadDispatcher)
 {
     this.moduleCreator            = moduleCreator;
     this.sbModuleEqualityComparer = sbModuleEqualityComparer;
     this.mainThreadDispatcher     = mainThreadDispatcher;
     cache = new Dictionary <SbModule, IDebugModule3>(sbModuleEqualityComparer);
 }
    public void CreateInstanceModules()
    {
        cameraController = ModuleCreator.Create <CameraController>("camController");
        PoolModule.CreatePool(PrefabCollection.Meteor, 1000, "Meteor Pool");
        PoolModule.CreatePool(PrefabCollection.Bomber, 30, "Bomber Pool");

        launchedExploders  = new List <Exploder>();
        launchedImploders  = new List <Imploder>();
        launchedDefenders  = new List <Defender>();
        GameplayController = new GameplayController();
        cameraController.SetupTarget();
    }
Пример #3
0
    // Use this for initialization
    void Awake()
    {
        Creator = ModuleCreator.Instance;
        Creator.Initiate (1f);

        _buildingsCanvas = GameObject.Find ("Buildings");
        _sliderTime = GameObject.Find ("SlidderForSpeed");
        _constructionCanvas = GameObject.Find ("Construction");
        _buttonLandingZone = GameObject.Find ("LandingZoneButton");
    }
Пример #4
0
 public virtual IDebugModuleCache Create(ModuleCreator moduleCreator) =>
 new DebugModuleCache(moduleCreator, SbModuleEqualityComparer.Instance,
                      mainThreadDispatcher);