Exemplo n.º 1
0
    // Update is called once per frame
    void Update()
    {
        if (!CoinCount)
        {
            return;
        }

        /*
         * if (timer > 0)
         *  timer -= Time.deltaTime;
         * else if(!CanHit && timer <= 0 && !CoinCount.Finished()) //reset
         * {
         *  CanHit = true;
         *  CC.ParticlesOnHit = CombatCharacter.HitParticles.COINS;
         * }
         */

        //Set hit particles to sparks when we're done
        if (CoinCount.Finished() && CC.ParticlesOnHit == CombatCharacter.HitParticles.COINS)
        {
            CC.ParticlesOnHit = CombatCharacter.HitParticles.SPARKS;
        }
    }