public bool CanInteract(GameObject player) { CoffeePot pcpot = player.GetComponent <PlayerController>().GetInventory().coffeePot; return((pcpot != null && pcpot.getFillLevel() != pcpot.getMaxFillLevel() && cpot == null) ^ (cpot != null && currentBrewingTime <= 0 && pcpot == null)); }
public override bool CanInteract(GameObject player) { CoffeePot pcpot = player.GetComponent <PlayerController> ().GetInventory().coffeePot; return(pcpot != null && pcpot.getFillLevel() != 0f && this.coffeeTimer <= this.coffeeTimer_init * 0.95); }