public override void start() { for (int i = 0; i < particleSystems.Length; i++) { particleSystems[i].Play(); } for (int i = 0; i < Startables.Length; i++) { Startable startable = Startables[i]; if (startable != this && ((MonoBehaviour)startable).isActiveAndEnabled) { startable.start(); } } }
private void beginFire() { if (curCooldown < cooldown) { return; } curCooldown = 0; for (int i = 0; i < particleSystems.Length; i++) { particleSystems[i].Play(); justFired = true; } for (int i = 0; i < _startables.Length; i++) { Startable startable = _startables[i]; if (((MonoBehaviour)startable).enabled) { startable.start(); } } }
private void FixedUpdate() { if (step2 == null) { return; } if (!wasAtGround && step2.step.dockedState) { for (int i = 0; i < particleSystems.Length; i++) { particleSystems[i].Play(); } for (int i = 0; i < _startables.Length; i++) { Startable startable = _startables[i]; if (((MonoBehaviour)startable).enabled) { startable.start(); } } } wasAtGround = step2.step.dockedState; }