示例#1
0
 // Use this for initialization
 void Start()
 {
     instance   = this;
     transforms = new TransformAccessArray(0, -1);
     randNums   = new NativeList <float>(initialBats, Allocator.Persistent);
     InvokeRepeating("Randomizer", 0, .5f);
     InstantiateBatFlock();
 }
示例#2
0
 public void ToggleBats()
 {
     BatHandler.getInstance().ToggleBats();
 }