1
Fork 0
mirror of https://github.com/Steffo99/gravity-fusion.git synced 2024-11-29 03:24:30 +00:00
gravity-fusion/Assets/Components/Tutorial.cs

80 lines
2.6 KiB
C#
Raw Permalink Normal View History

2019-10-07 20:02:46 +00:00
using UnityEngine;
using UnityEngine.UI;
public class Tutorial : MonoBehaviour {
protected GameController gameController;
protected void Awake() {
gameController = GetComponent<GameController>();
}
protected void Start() {
2019-10-11 18:32:05 +00:00
gameController.messageBox.Write("Welcome to Gravity Fusion!", Step1);
2019-10-07 20:02:46 +00:00
}
public void Step1() {
2019-10-14 23:36:48 +00:00
if(Application.platform == RuntimePlatform.Android) {
gameController.messageBox.Write("Touch somewhere to spawn your Black Hole!", null);
}
else {
gameController.messageBox.Write("Press Left Mouse Button to spawn your Black Hole!", null);
}
2019-10-07 20:02:46 +00:00
}
public void Step2() {
2019-10-14 23:36:48 +00:00
if(Application.platform == RuntimePlatform.Android) {
gameController.messageBox.Write("Tap outside the Black Hole to spawn a Particle!", Step3);
}
else {
gameController.messageBox.Write("Click outside the Black Hole to spawn a Particle!", Step3);
}
2019-10-07 20:02:46 +00:00
}
public void Step3() {
gameController.messageBox.Write("6 Particles of the same size merge into a bigger one!", Step4);
}
public void Step4() {
2019-10-07 21:29:58 +00:00
gameController.messageBox.Write("If a Particle touches the Black Hole, it gets eaten!", Step45);
}
2019-10-14 23:36:48 +00:00
public void Step45() {
if(Application.platform == RuntimePlatform.Android) {
gameController.messageBox.Write("Zoom in and out by pinching the screen!", Step5);
}
else {
gameController.messageBox.Write("Zoom in and out with the Mouse Scroll Wheel!", Step5);
}
2019-10-07 20:02:46 +00:00
}
2019-10-14 23:36:48 +00:00
public void Step5() {
if(Application.platform == RuntimePlatform.Android) {
gameController.messageBox.Write("Pan the camera by dragging with two fingers!", Step6);
}
else {
2019-10-07 21:29:58 +00:00
gameController.messageBox.Write("Pan the camera with Middle Mouse Button (or Space)!", Step6);
2019-10-14 23:36:48 +00:00
}
2019-10-07 20:02:46 +00:00
}
public void Step6() {
gameController.messageBox.Write("Larger Particles automatically generate smaller particles!", Step7);
}
2019-10-14 23:36:48 +00:00
public void Step7() {
if(Application.platform == RuntimePlatform.Android) {
gameController.messageBox.Write("You can press Back to buy upgrades at my Mass Shop!", Step8);
}
else {
gameController.messageBox.Write("You can press Tab to buy upgrades at my Mass Shop!", Step8);
}
2019-10-07 20:02:46 +00:00
}
public void Step8() {
2019-10-07 21:33:55 +00:00
gameController.messageBox.Write("Grow the Black Hole the most you can!", Step9);
2019-10-07 20:02:46 +00:00
}
public void Step9() {
gameController.messageBox.Write("Have fun!", null);
}
}