void Start() { stomach = playerData.getStomach(); stomach.registerSubscriber(this); if (score == null) { score = GameObject.FindObjectOfType <Score>(); } }
void Start() { stomach.registerSubscriber(this); InvokeRepeating("decreaseStomach", 4.0f, 4.0f); }