Exemple #1
0
 void Start()
 {
     init();
     collideBase        = new onCollide(cloudCollide);
     collideSAL         = new onCollide(cloudCollideSAL);
     collideSAR         = new onCollide(cloudCollideSAR);
     collideLazer       = new onCollide(cloudProjCollide);
     collideCannon      = new onCollide(cloudProjCollide);
     canStopProjectiles = false;
 }
Exemple #2
0
 protected void init() //place inside Start() to facilitate easy children
 {
     hpMax         = hp;
     collideBase   = new onCollide(defaultCollideBase);
     collideSAL    = new onCollide(defaultCollideSAL);
     collideSAR    = new onCollide(defaultCollideSAR);
     collideLazer  = new onCollide(defaultLazerCollide);
     collideCannon = new onCollide(defaultCannonCollide);
     collideShield = new onCollide(defaultShieldCollide);
     plr           = GameObject.FindGameObjectWithTag("Player");
     speedBonus    = Random.Range(speedBonusMin, speedBonusMax);
 }