示例#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);
 }