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); }
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); }