using UnityEngine;

public enum AppleCategory {
    Green,
    Yellow,
    Red
}

public class Apple : MonoBehaviour {

    public AppleCategory category = AppleCategory.Green;

    [SerializeField()]
    private int score = 1;

    public int Score {
        get {
            GameStateManager gsm = GameStateManager.Instance;
            int roundedRemainingTime
                   = Mathf.RoundToInt(gsm.RemainingSeconds);
            int timedScore = score * roundedRemainingTime;
            return timedScore;
        }
    }

}
