protected override bool OnFinishWorking() { IceCreamMachine_Making icecream = coneInput.GetComponent <IceCreamMachine_Making>(); icecream.setUnitProperty(icecream.ConeFlavor, icecream.IceCreamFlavor, true); icecream.isSprinkle = true; return(true); }
protected override bool OnFinishWorking() { Destroy(coneInput); spawnObject = Instantiate(IceCreamAndCone, spawnPoint, Quaternion.identity); IceCreamMachine_Making iceCreamMaking = spawnObject.GetComponent <IceCreamMachine_Making>(); iceCreamMaking.setUnitProperty(ConeFlavor, iceCreamFlavor, false); iceCreamMaking.LastPosition = spawnPoint; return(true); }