Example #1
0
    public virtual void Awake()
    {
        LoadFromXML();
        worldInterface = GameManager.worldInterface;
        if (worldInterface == null)
        {
            DebugOutput.Shout("KABLAM# worldinterface is null");
        }

        worldInterface.RegisterOnChangedPoint(OnChangedPoints);

        worldTree = new IndexingWorldTree((sbyte)GameManager.worldSize);
        worldTree.Init();
        if (popPrefabs == null)
        {
            DebugOutput.Shout("La merde! popPrefabs is null!");
        }

        pendingChangedPoints = new List<ChangedPoint>();
    }
Example #2
0
    public override void Awake()
    {
        LoadFromXML();
        DebugOutput.Shout("Banana!");
        worldInterface = GameManager.worldInterface;
        if (worldInterface == null)
        {
            DebugOutput.Shout("KABLAM# worldinterface is null");
        }

        ((AquariaWorldInterface)worldInterface).RegisterDeliverPoint(DeliverPoints);

        worldTree = new IndexingWorldTree((sbyte)GameManager.worldSize);
        worldTree.Init();
        if (popPrefabs == null)
        {
            DebugOutput.Shout("La merde! popPrefabs is null!");
        }

        pendingChangedPoints = new List<ChangedPoint>();
    }