Ejemplo n.º 1
0
    public override float Attack(GameObject hero, GameObject me, int index)
    {
        Stage2Boss boss = me.GetComponent <Stage2Boss>();

        int[] seed = new int[] { 0, 2, 4, 6, 8 };

        boss.ShootBullet(new int[] { seed[Random.Range(0, seed.Length)] });

        return(4.0f);
    }
Ejemplo n.º 2
0
 // Use this for initialization
 protected override void Start()
 {
     base.Start();
     ChangePhase(1);
     if (transform.parent.parent.GetComponent <Stage2Boss> ())
     {
         boss = transform.parent.parent.GetComponent <Stage2Boss> ();
     }
     else
     {
         bossw = transform.parent.parent.GetComponent <WeakBoss4> ();
     }
 }
Ejemplo n.º 3
0
    public override float Attack(GameObject hero, GameObject me, int index)
    {
        if (lastSend < 2.0f)
        {
            return(2.0f);
        }
        lastSend = 0.0f;
        Stage2Boss boss = me.GetComponent <Stage2Boss>();

        boss.ShootBullet(new int[] { 0, 1, 2, 3, 4, 5 }, true);
        boss.ShootEgg(new int[] { 0, 1 }, true);
        return(2.0f);
    }
Ejemplo n.º 4
0
 // Use this for initialization
 void Start()
 {
     boss   = GameObject.Find("Stage2Boss");
     S2boss = boss.GetComponent <Stage2Boss>();
     phaseIndicator.text = "8";
 }