Exemplo n.º 1
0
    public override void Interact(Liquidateur li)
    {
        score         += li.stock;
        li.stock       = 0;
        scoreText.text = score.ToString();

        UpdatePlane();
    }
Exemplo n.º 2
0
    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;
        }
    }
Exemplo n.º 3
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;
    }
Exemplo n.º 4
0
 public virtual void Interact(Liquidateur li)
 {
 }