示例#1
0
        private void OnEnable()
        {
            onVegetableChoppedComplete = new OnVegetableChoppedComplete();

            _move = GetComponent <Move>();
            if (_move == null)
            {
                throw new System.Exception("Cannot find Move component...");
            }
        }
示例#2
0
 private void OnDisable()
 {
     onVegetableChoppedComplete.RemoveAllListeners();
     onVegetableChoppedComplete = null;
 }