Esempio n. 1
0
    void Start()
    {
        lastCheckpoint = transform;
        rb             = GetComponent <Rigidbody2D>();
        cc             = GetComponent <CircleCollider2D>();

        currentHealth = maxHealth;
        healthBar.SetMaxHealth(maxHealth);

        coalText.text = coalCount.ToString();
    }