コード例 #1
0
        public static void Build(SnapshotBuilder snapshot)
        {
            var texture = AssetDatabase.LoadAssetAtPath <Texture2D>("Assets/Editor/Resources/full.png");

            SnapshotUtil.AddTrees(snapshot, texture, 0.35f, 10000, 500, 0);
            SnapshotUtil.AddSimulationManagerEntity(snapshot);
        }
コード例 #2
0
        public static void Build(SnapshotBuilder snapshot)
        {
            var texture = AssetDatabase.LoadAssetAtPath <Texture2D>("Assets/Editor/Resources/perlin.png");

            SnapshotUtil.AddSimulationIndividuals(snapshot);
            SnapshotUtil.AddSimulationCountries(snapshot);
            SnapshotUtil.AddSimulationManagerEntity(snapshot);
        }
コード例 #3
0
        public static void Build(SnapshotBuilder snapshot)
        {
            var texture = AssetDatabase.LoadAssetAtPath <Texture2D>("Assets/Editor/Resources/perlin.png");

            SnapshotUtil.AddHQs(snapshot, SimulationSettings.TeamHQLocations);
            SnapshotUtil.AddNPCsAroundHQs(snapshot, SimulationSettings.TeamHQLocations);
            SnapshotUtil.AddTrees(snapshot, texture, 0.35f, SimulationSettings.AttemptedTreeCount, SimulationSettings.SpawningWorldEdgeLength, SimulationSettings.TreeJitter);
            SnapshotUtil.AddPlayerSpawner(snapshot);
        }