private void OnEnable() { onVegetableChoppedComplete = new OnVegetableChoppedComplete(); _move = GetComponent <Move>(); if (_move == null) { throw new System.Exception("Cannot find Move component..."); } }
private void OnDisable() { onVegetableChoppedComplete.RemoveAllListeners(); onVegetableChoppedComplete = null; }