Пример #1
0
 // Use this for initialization
 protected override void Init()
 {
     span40 = new TickEvent(40);
     span40.SetFunction(Attack);
     span600 = new TickEvent(600);
     span600.SetFunction(ChangeAttack);
 }
Пример #2
0
 // Use this for initialization
 protected override void Init()
 {
     spanEv = new TickEvent(span);
     spanEv.SetFunction(Shot);
     if (GameObject.FindGameObjectWithTag("Player"))
     {
         player = GameObject.FindGameObjectWithTag("Player").GetComponent <ShootingPlayerBase>();
     }
 }
Пример #3
0
 // Use this for initialization
 protected override void Init()
 {
     spanEv = new TickEvent(120);
     spanEv.SetFunction(Shot01);
 }
Пример #4
0
 // Use this for initialization
 protected override void Init()
 {
     span20 = new TickEvent(20);
     span20.SetFunction(Shot);
 }