Exemple #1
0
    protected override void OnInteraction()
    {
        base.OnInteraction();

        MainPlayerScript.ChangeScore(1000);
        MainPlayerScript.GameWon();
    }
    protected override void OnInteraction()
    {
        base.OnInteraction();

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

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

        Highlighted(false);
    }