-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathTutorialValidator.cs
More file actions
35 lines (29 loc) · 810 Bytes
/
TutorialValidator.cs
File metadata and controls
35 lines (29 loc) · 810 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
using UnityEngine;
namespace SweatyChair
{
/// <summary>
/// A base class for check if an tutorial can start.
/// Override this for differnt condition and things to do in a tutorial.
/// </summary>
public abstract class TutorialValidator : MonoBehaviour
{
// Check the tutorial can start now
public virtual bool IsValidated()
{
return true;
}
// Check the tutorial is already completed by return player, this may be similar to IsValidate but with less constraint such as State
public virtual bool IsCompletedForReturnPlayer()
{
return false;
}
// Hard-code what should do after tutorial prefab is instantiated
public virtual void OnTutorialStart()
{
}
// Hard-code what should do after tutorial is completed
public virtual void OnTutorialComplete()
{
}
}
}