void Start() { cc = GetComponent <CoinCollisions>(); Messages.Instance.Subscribe <PlayerStat>(x => cc.Statlogic(x.Stat, x.Increment)); }
void Awake() { cc = GetComponent <CoinCollisions>(); }
void Start() { cc = GetComponent <CoinCollisions>(); Messages.Instance.Subscribe <MessageScore>(x => cc.Scorelogic(x.score)); }