mirror of
https://github.com/Steffo99/gravity-fusion.git
synced 2024-11-25 09:44:19 +00:00
80 lines
No EOL
2.6 KiB
C#
80 lines
No EOL
2.6 KiB
C#
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
|
|
public class Tutorial : MonoBehaviour {
|
|
protected GameController gameController;
|
|
|
|
protected void Awake() {
|
|
gameController = GetComponent<GameController>();
|
|
}
|
|
|
|
protected void Start() {
|
|
gameController.messageBox.Write("Welcome to Gravity Fusion!", Step1);
|
|
}
|
|
|
|
public void Step1() {
|
|
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);
|
|
}
|
|
}
|
|
|
|
public void Step2() {
|
|
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);
|
|
}
|
|
}
|
|
|
|
public void Step3() {
|
|
gameController.messageBox.Write("6 Particles of the same size merge into a bigger one!", Step4);
|
|
}
|
|
|
|
public void Step4() {
|
|
gameController.messageBox.Write("If a Particle touches the Black Hole, it gets eaten!", Step45);
|
|
}
|
|
|
|
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);
|
|
}
|
|
}
|
|
|
|
public void Step5() {
|
|
if(Application.platform == RuntimePlatform.Android) {
|
|
gameController.messageBox.Write("Pan the camera by dragging with two fingers!", Step6);
|
|
}
|
|
else {
|
|
gameController.messageBox.Write("Pan the camera with Middle Mouse Button (or Space)!", Step6);
|
|
}
|
|
}
|
|
|
|
public void Step6() {
|
|
gameController.messageBox.Write("Larger Particles automatically generate smaller particles!", Step7);
|
|
}
|
|
|
|
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);
|
|
}
|
|
}
|
|
|
|
public void Step8() {
|
|
gameController.messageBox.Write("Grow the Black Hole the most you can!", Step9);
|
|
}
|
|
|
|
public void Step9() {
|
|
gameController.messageBox.Write("Have fun!", null);
|
|
}
|
|
} |