public void TestMethod1() { TitleScroller.TitleScreen(); Game.MainMenu(); PlanetMenu.Display("Mercury"); PlanetMenu.Menu("Mercury"); }
//Planete actuelle void Start() { Init(); generationGalaxy(); mainMenuAnim = MainMenu.GetComponent <Animator>(); systemMenuAnim = SystemMenu.GetComponent <Animator>(); planetMenuAnim = PlanetMenu.GetComponent <Animator>(); }
// Use this for initialization void Start() { mainMenuAnim = MainMenu.GetComponent <Animator>(); systemMenuAnim = SystemMenu.GetComponent <Animator>(); planetMenuAnim = PlanetMenu.GetComponent <Animator>(); /* * planetTextFieldName = planetTextName.GetComponent<Text> (); * galaxyTextFieldName = galaxyTextName.GetComponent<Text> (); * systemTextFieldName = systemTextName.GetComponent<Text> (); */ }
// Use this for initialization void Awake () { if (Instance != null && Instance != this) { Destroy(Instance.gameObject); } Instance = this; //shitty singleton, but anything more ruins everything for whatever reason. // I'm not even mad rn. _nameText = transform.Find("Name").GetComponent<Text>(); _shipsButton = transform.Find("ShipsButton").GetComponent<Button>(); _shipsButton.onClick.AddListener(() => ShowShipMenu()); _buildResearchRacerButton = transform.Find("BuildResearchRacer").GetComponent<Button>(); _buildResearchRacerButton.onClick.AddListener(() => BuildResearchRacer()); _buildColonyCarrierButton = transform.Find("BuildColonyCarrier").GetComponent<Button>(); _buildColonyCarrierButton.onClick.AddListener(() => BuildColonyCarrier()); gameObject.SetActive(false); }