Esempio n. 1
0
    void Start()
    {
        if (global == null)
        {
            global = GameObject.Find("GlobalStateManager").GetComponent <GlobalBehavior>();
            global.PrintCurrentLevel();
        }


        periwinkle = GameObject.Find("PeriwinkleShip").GetComponent <Ship>();
        orangeRed  = GameObject.Find("OrangeRedShip").GetComponent <Ship>();
        blue       = GameObject.Find("PeriwinkleShip").GetComponent <Ship>();
        chartreuse = GameObject.Find("OrangeRedShip").GetComponent <Ship>();
        blueCity   = GameObject.Find("BlueCity").GetComponent <VersusBaseBehavior>();
        orangeCity = GameObject.Find("OrangeCity").GetComponent <VersusBaseBehavior>();
        charCity   = GameObject.Find("ChartreuseCity").GetComponent <VersusBaseBehavior>();
        perCity    = GameObject.Find("PeriwinkleCity").GetComponent <VersusBaseBehavior>();
        status     = GameObject.Find("Status").GetComponent <GUIText>();
        controls   = GameObject.Find("Controls").GetComponent <GUIText>();

        controls.text =
            "1: Destroy Periwinkle ship"
            + "\n2: Destroy OrangeRed ship"
            + "\n3: Destroy Periwinkle city"
            + "\n4: Destroy OrangeRed city"
            + "\n5: Turn on ship invincibility"
            + "\n6: Turn on city invincibility"
            + "\nF1: Destroy all orbs"
            + "\nF2: Spawn more orbs"
            + "\nEnter: Reset scene"
            + "\nEscape: Return to main menu";
    }