//int shootParticleCount; protected override void Start() { // Power Shot skillCost[0] = 400; skillMax[0] = skillCost[0]; // Nova skillCost[1] = 2000; skillMax[1] = skillCost[1]; shootPower[0] = 1900; shootPower[1] = shootPower[0]; shootPower[2] = shootPower[0]; shootDelay[0] = 0.135f; shootDelay[1] = shootDelay[0]; shootDelay[2] = shootDelay[0]; Pooler.Instantiate(laser1, laser1_prefab, 15); Pooler.Instantiate(laser2, laser2_prefab, 30); //Pooler.Instantiate(laserBlast, laserBlast_prefab, 12); powerShot = Instantiate(powerShot_prefab).GetComponent <PowerShot>(); powerShot.gameObject.SetActive(false); powerShot.owner = this; nova = Instantiate(nova_prefab).GetComponent <StunNova>(); nova.gameObject.SetActive(false); nova.owner = this; base.Start(); }
public override void SetShots() { allshots = new IShotType[6]; allshots[0] = new PowerShot(0.2f, 0.5f); allshots[1] = new PowerShot(0.2f, 0.35f); allshots[2] = new PowerShot(0.2f, 0.2f); allshots[3] = new PowerFocus(0.2f, 0.3f); allshots[4] = new PowerFocus(0.2f, 0.25f); allshots[5] = new PowerFocus(0.2f, 0.2f); bomb = new Magicannon(); }