public override void Interact(Liquidateur li) { score += li.stock; li.stock = 0; scoreText.text = score.ToString(); UpdatePlane(); }
public override void Interact(Liquidateur li) { li.stock += quantity; if (li.stock > li.stockMax) { int surplus = li.stockMax - li.stockMax; quantity = surplus; } else { quantity = 0; } }
protected override IEnumerator Interact() { state = State.interagit; animator.SetTrigger("soigne"); yield return(new WaitForSeconds(1f)); Liquidateur obj = target.GetComponent <Liquidateur>(); if (obj) { obj.Heal(); Debug.Log($"{gameObject.name} soigne { obj.name}", gameObject); target = GameManager.Hopital; } state = State.revient; }
public virtual void Interact(Liquidateur li) { }