Example #1
0
    // 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);
    }
Example #2
0
    // 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);
        }
    }