/*--- Lifecycle Methods ---*/ void Start() { // Set Instance instance = this; // Get Initial Position/Rotation initialPosition = transform.localPosition; // Calculate Offsets verticalTemporalOffset = verticalTemporalOffsetFactor * cycleLength; }
// Start is called before the first frame update void Awake() { values = new Dictionary <string, float>(); lines = new List <Text>(); oldLines = new List <Text>(); textFab = GetComponentInChildren <Text>().gameObject; dragHandle = GetComponentInChildren <MenuPositioner>(true); dragHandle.DragWindow = this.gameObject; textFab.SetActive(false); rectTransform = GetComponent <RectTransform>(); gameObject.SetActive(false); nfi = new NumberFormatInfo(); nfi.NumberDecimalDigits = 0; this.transform.parent = this.transform.parent.parent; }
// Start is called before the first frame update void Awake() { buttonList = new Dictionary <string, List <string> >(); buttons = new List <GameObject>(); deadButtons = new List <GameObject>(); links = new List <GameObject>(); dragHandle = GetComponentInChildren <MenuPositioner>(); dragHandle.DragWindow = this.gameObject; dragHandle.gameObject.SetActive(false); hexDetails.docked = false; dockDetails.docked = true; List <string> newButtons = new List <string> { "Select", "Regen" }; buttonList.Add("startmenu", newButtons); newButtons = new List <string> { "build_air_tower_button", "build_basic_tower_button", "build_earth_tower_button", "build_fire_tower_button", "build_water_tower_button" }; buttonList.Add("towers_build", newButtons); newButtons = new List <string> { "build_speed_augment_button", "build_damage_augment_button", "build_range_augment_button", "build_chain_augment_button", "build_fork_augment_button", "build_multi_augment_button", "build_ethereal_augment_button" }; buttonList.Add("augments", newButtons); newButtons = new List <string> { "Wall", "Other thing" }; buttonList.Add("buildings", newButtons); newButtons = new List <string> { "Towers", "Augments", "Buildings", "Path" }; buttonList.Add("base", newButtons); newButtons = new List <string> { "Sell" }; buttonList.Add("towerselect", newButtons); newButtons = new List <string> { "Sell" }; buttonList.Add("augmentselect", newButtons); newButtons = new List <string> { "Sell" }; buttonList.Add("buildingselect", newButtons); newButtons = new List <string> { "Points", "More", "Less", "Faster", "Slower", }; buttonList.Add("spawner", newButtons); buttonPositions = new Vector3[] { new Vector3(4, 32, -1), new Vector3(4, -32, -1), new Vector3(66, 32, 1), new Vector3(66, -32, 1), new Vector3(68, 0, -1), new Vector3(4, -64, 1), new Vector3(0, 68, 1) }; // }