1
0
Fork 0
Bildschirmflausch-LD41/Assets/Scripts/Objectives/FinishObjective.cs

14 lines
389 B
C#
Raw Normal View History

2018-04-23 14:59:34 +02:00
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
2018-04-24 00:52:32 +02:00
public class FinishObjective : EntityObjective {
2018-04-23 14:59:34 +02:00
2018-04-24 00:52:32 +02:00
public FinishObjective(Room caller, GameObject go) : base(caller, new List<GameObject> { go }) { }
2018-04-23 14:59:34 +02:00
protected override void ReachedGoal() {
base.ReachedGoal();
GameController.instance.EndGame(GameController.EndedCause.WIN);
}
}