public void SuperTime() { // Next iteration PteraMover.ActivateTimeFreeze(); CaveFlamePit.ActivateTimeFreeze(); Fireball.ActivateTimeFreeze(); DestroyByTime.ActivateTimeFreeze(); LaserBeam.ActivateTimeFreeze(); Saw.ActivateTimeFreeze(); LaserTurret.ActivateTimeFreeze(); SwingingBoulder[] sb = FindObjectsOfType <SwingingBoulder>(); sb[0].ActivateTimeFreeze(); sb[1].ActivateTimeFreeze(); sb[2].ActivateTimeFreeze(); sb[3].ActivateTimeFreeze(); sb[4].ActivateTimeFreeze(); sb[5].ActivateTimeFreeze(); sb[6].ActivateTimeFreeze(); RockController.ActivateTimeFreeze(); Turret.ActivateTimeFreeze(); PlayerController[] players = FindObjectsOfType <PlayerController>(); foreach (PlayerController p in players) { if (p.playerNumber != playerNumber) { p.timeFreezeActivated = true; p.GetComponent <Rigidbody2D>().isKinematic = true; p.anim.enabled = false; } } GameObject[] FXs = GameObject.FindGameObjectsWithTag("FX"); foreach (GameObject fx in FXs) { fx.GetComponent <ParticleSystem>().Pause(); } Arrow.ActivateTimeFreeze(); Puma.ActivateTimeFreeze(); Piranha.ActivateTimeFreeze(); Cobra.ActivateTimeFreeze(); Saw.ActivateTimeFreeze(); Banana.ActivateTimeFreeze(); BananaSpawn[] bs = FindObjectsOfType <BananaSpawn>(); Bat.ActivateTimeFreeze(); bs[0].ActivateTimeFreeze(); bs[1].ActivateTimeFreeze(); bs[2].ActivateTimeFreeze(); // Add a trail to show the use of a super skill TrailRenderer trailRenderer = gameObject.GetComponentInChildren <TrailRenderer>(); trailRenderer.enabled = true; }