示例#1
0
        protected override void OnSaveLoadRootRegistered(SaveLoadRoot root)
        {
            // Add new plants to partitioner
            var tag = root.GetComponent <KPrefabID>().GetSaveLoadTag();

            if (plants.Contains(tag))
            {
                var uprootable = root.GetComponent <Uprootable>();
                if (uprootable != null)
                {
                    partition.Add(uprootable);
                }
            }
        }
 public void AddSplat(NoiseSplat splat)
 {
     splats.Add(splat);
     spatialSplats.Add(splat);
 }