Пример #1
0
    public static AquariaWorldInterface CreateAquariaWorld(int wSize)
    {
        if (_worldInterface == null)
        {
            GameObject g = GameObject.Find("_worldInterface");
            if (g == null)
            {
                g = new GameObject("_worldInterface");
            }
            _worldInterface = g.AddComponent<AquariaWorldInterface>();
            _aquaWorldInterface = (AquariaWorldInterface)_worldInterface;
            _aquaWorldInterface.Init(wSize);
        }

        return _aquaWorldInterface;
    }
Пример #2
0
    protected override void Init()
    {
        canvas = Canvas.FindObjectOfType<Canvas>();
        canvasManager = canvas.GetComponent<CanvasManager>();

        aquariaWorldInterface = AquariaWorldInterface.CreateAquariaWorld(worldSize);
        worldInterface = aquariaWorldInterface;

        pointObjectManager = APointObjectManager.CreateAPointObjectManager();

        actionManager = gameObject.AddComponent<AquariaActionManager>();
        workManager = gameObject.AddComponent<WorkManager>();
        visitorManager = new VisitorManager(aquariaWorldInterface);
        pathFinder = new Pathfinder();

        BuildStartArea();
    }
Пример #3
0
 public VisitorManager(AquariaWorldInterface winterface)
     : base()
 {
     worldInterface = winterface;
     AddSubSystem(gfxSystem = new MeshGraphicsSubsystem(GetActiveAgentCount,GetAgentPoint,null));
 }