Ejemplo n.º 1
0
    private void OnDisable()
    {
        rewardMat.SetColor("_EmissionColor", rewardMat.color * 0.5f);
        fx_hitHand_one.transform.localPosition = Vector3.zero;
        fx_hitHand_two.transform.localPosition = Vector3.zero;

        // Clear the list of hands
        HandSituations.Clear();
    }
Ejemplo n.º 2
0
    private void OnDisable( )
    {
        if (state == OpponentState.Hit)
        {
            // Return scale to normal
            transform.localScale = new Vector3(transform.localScale.x, transform.localScale.y, 10.0f * transform.localScale.z);
            rewardMat.SetColor("_EmissionColor", origRewardMatEmisCol);
        }

        // Clear the list of hands
        HandSituations.Clear();
    }