Esempio n. 1
0
    protected override void OnInteraction()
    {
        base.OnInteraction();

        MainPlayerScript.ChangeScore(1000);
        MainPlayerScript.GameWon();
    }
Esempio n. 2
0
    protected override void OnInteraction()
    {
        base.OnInteraction();

        MainPlayerScript.ChangeScore(50);
        Destroy(gameObject);
    }
Esempio n. 3
0
    protected override void OnInteraction()
    {
        base.OnInteraction();

        MainPlayerScript.ChangeScore(100);
        Destroy(Door);
        IsInteractable = false;

        Highlighted(false);
    }