// Use this for initialization void Start() { //Length of an in-game hour eg. 1 = 2.5 2 = 5 (in seconds) hourLength = (dayLengthInMinutes * 60) / 24; //Number of degress roated per millisecond to get 360 in hourLength*24 skydomeScript = skydome.GetComponent(typeof(skydomeScript2)) as skydomeScript2; }
void OnEnable() { skydomeScript = skydome.GetComponent(typeof(skydomeScript2)) as skydomeScript2; }
// Use this for initialization void Start () { //Length of an in-game hour eg. 1 = 2.5 2 = 5 (in seconds) hourLength = (dayLengthInMinutes * 60) / 24; //Number of degress roated per millisecond to get 360 in hourLength*24 skydomeScript = skydome.GetComponent(typeof(skydomeScript2)) as skydomeScript2; }
// Use this for initialization void Start() { skydomeScript = skydome.GetComponent(typeof(skydomeScript2)) as skydomeScript2; }
// Use this for initialization void Start() { GameTime = (skydomeScript2) GameObject.Find("Skybox Controller").GetComponent("skydomeScript2"); inventory = GameObject.FindGameObjectWithTag("Player").GetComponent<Inventory>(); equippedItemScript = GameObject.Find("EquippedItem").GetComponent<EquippedItemManager>(); textHints = GameObject.Find("TextHintGUI"); CurrentTemp = 91.0f; CurrentBaseTemp = 91.0f; }
// Use this for initialization void Start() { skydomeScript = mainManager.GetComponent(typeof(skydomeScript2)) as skydomeScript2; }
// Use this for initialization void Start() { respawnTime = UnityEngine.Random.Range(45, 60); interactionManager = GameObject.FindGameObjectWithTag("Player").GetComponent<InteractionManager>(); timeScript = GameObject.Find("Skybox Controller").GetComponent<skydomeScript2>(); isSpawned = true; nodeToCreate = nodeType; }
void Update() { if(world == null)world=GameObject.Find("World").GetComponent("World") as World; if(skyDome == null)skyDome=GameObject.Find("Skydome").GetComponent("skydomeScript2") as skydomeScript2; //if(charmotor == null)charmotor=GameObject.Find("Player").GetComponent("CharacterMotor") as CharacterMotor; if (Input.GetKeyDown(toggleKey)) { show = !show; } if(Input.GetKeyDown(KeyCode.Return)){ if(GUI.GetNameOfFocusedControl() == "Command"){ HandleLog(consoleInput, "no bitch", LogType.Assert); }else{ Debug.Log(GUI.GetNameOfFocusedControl()); } } }