Example #1
0
    // Update is called once per frame
    void Update()
    {
        if (Play == true)
        {
            Sprite.color = new Color(1, 1, 1);

            Play_Anim();
            //Player_Color.color = new Color(0.5f, 0, 0);

            Script.Death();
        }
    }
Example #2
0
    private void OnTriggerEnter2D(Collider2D collision)
    {
        if (collision.tag == "Planet")
        {
            Sprite.color = new Color(1, 0, 0);


            //Player_Color.color = new Color(0.5f, 0, 0);

            Script.Death();
        }
    }