Start() public method

public Start ( ) : void
return void
コード例 #1
0
ファイル: Map.cs プロジェクト: Epicguru/ModernGod
        public void Init()
        {
            if (Initialized)
            {
                return;
            }

            Terrain     = new Terrain(this, 2, 2);
            Buildings   = new BuildingManager(this);
            Generation  = new MapGen(this);
            Characters  = new CharacterManager(this);
            Interaction = new MapInteraction(this);
            Pathing     = new PathManager(4, this);
            Shrubs      = new MapShrubs(this);

            Terrain.Init();
            Buildings.Init();
            Shrubs.Init();
            Generation.Generate();
            Pathing.Start();
            Characters.Init();

            Initialized = true;

            watch.Start();
            for (int i = 0; i < 100; i++)
            {
                Characters.CreateCharacter(new Vector2Int(i), "John");
            }
        }