public void playDisk() { EmitDisk = Emit2.GetSSAction(); Disk = diskFactory.getDisk(sceneController.round); this.RunAction(Disk, EmitDisk, this); Disk.GetComponent <DiskData2>().action = EmitDisk; }
// Update is called once per frame protected new void Update() { if (sceneController.round <= 3 && sceneController.game == 1) { count++; if (count == 60) { EmitDisk = Emit2.GetSSAction(); this.RunAction(diskFactory.getDisk(sceneController.round), EmitDisk, this); sceneController.num++; print(sceneController.num); count = 0; } base.Update(); } }
public static Emit2 GetSSAction() { Emit2 action = ScriptableObject.CreateInstance <Emit2>(); return(action); }