// Start is called before the first frame update void Start() { PlayerMoveScript = Player.GetComponent <movePlayer>(); PowerUpScriptVar = SpeedPU.GetComponent <SpeedPowerUpScript>(); PlayerLifeScript = Player.GetComponent <PlayerLifeCountAndDie>(); IPUScript = InvinciblePU.GetComponent <InvincibilityCharacterScript>(); SpeedTrail.SetActive(false); }
// Start is called before the first frame update void Start() { LifeScript = PlayerSprite.GetComponent <PlayerLifeCountAndDie>(); if (Random.Range(1, 10) == 7) { HealthPod.SetActive(true); } else { HealthPod.SetActive(false); } }