Beispiel #1
0
    // Update is called once per frame
    void Update()
    {
        Decal.transform.position = Hips.transform.position;

        /*Vector3 v = Decal.transform.position;
         * v.y = foot.position.y;
         * Decal.transform.position = v;*/

        if (IsInvincible)
        {
            playerIdentity.SetPlayerMaterial(0, "_Fresnel_Bias", Mathf.PingPong(Time.time * 0.7f, 0.25f));
        }
        else
        {
            playerIdentity.SetPlayerMaterial(0, "_Fresnel_Bias", 0);
        }
    }