// Start is called before the first frame update
    void Start()
    {
        islandSpawner = GameObject.Find("IslandSpawner").GetComponent <IslandSpawner>();

        textChoice[0] = "Welcome to the Mind Sea";
        textChoice[1] = "Sail forward with W";
        textChoice[2] = "Steer using A and D";
        textChoice[3] = "Hoist the Anchor with E";
        textChoice[4] = "Scan the Horizon with Shift";
        textChoice[5] = "Light all the Island Beacons";
        textChoice[6] = "";

        keyCodeChoice[0] = KeyCode.Space;
        keyCodeChoice[1] = KeyCode.W;
        keyCodeChoice[2] = KeyCode.D;
        keyCodeChoice[3] = KeyCode.E;
        keyCodeChoice[4] = KeyCode.LeftShift;
        keyCodeChoice[5] = KeyCode.Space;
        keyCodeChoice[6] = KeyCode.Space;
    }
Example #2
0
 void Awake()
 {
     instance = this;
 }
Example #3
0
 void Start()
 {
     islandSpawner = GetComponent <IslandSpawner>();
     temperature   = Thermometer.GetComponent <Temperature>();
 }
Example #4
0
 public void Awake()
 {
     instance      = this;
     islandSpawner = GetComponent <IslandSpawner>();
 }