1
0
Fork 0
Bildschirmflausch-LD41/Assets/Scripts/Objectives/FinishObjective.cs
2018-04-24 00:52:32 +02:00

13 lines
389 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class FinishObjective : EntityObjective {
public FinishObjective(Room caller, GameObject go) : base(caller, new List<GameObject> { go }) { }
protected override void ReachedGoal() {
base.ReachedGoal();
GameController.instance.EndGame(GameController.EndedCause.WIN);
}
}