Ejemplo n.º 1
0
        void OnLoadFog()
        {
            points.SetUnitAtIndex <GivingTreeUnit> (0);
            points.SetUnitAtIndex <Flower> (2);
            // points.SetUnitAtIndex<University> (3);
            points.SetUnitAtIndex <MilkshakePool> (15);

            ConnectionContainer c = ConnectionsManager.GetContainer(points.GetConnectionsAtIndex(2)[3]);

            c.BeginConstruction <Road> ();
            c.EndConstruction();
        }
Ejemplo n.º 2
0
        void OnLoadConnections()
        {
            // Create initial roads
            List <Connection> topConnections = points.GetConnectionsAtIndex(0);

            for (int i = 0; i < topConnections.Count; i++)
            {
                ConnectionContainer c = ConnectionsManager.GetContainer(topConnections[i]);
                c.BeginConstruction <Road> ();
                c.EndConstruction();
            }

            /*List<Connection> topConnections2 = points.GetConnectionsAtIndex (12);
             * for (int i = 0; i < topConnections2.Count; i ++) {
             *      ConnectionContainer d = ConnectionsManager.GetContainer (topConnections2[i]);
             *      d.BeginConstruction<Road> ();
             *      d.EndConstruction ();
             * }*/

            fogOfWar.Init();
        }