// Use this for initialization void Start () { Instance = this; shamScript = sham.GetComponent<ShamrockScript>(); clockScript = clock.GetComponent<TimeClockScript>(); fullKScript = fullK.GetComponent<KettleFullScript>(); emptyKScript = emptyK.GetComponent<KettleEmptyScript>(); cloudScript = cloud.GetComponent<AngryCloudScript>(); this.transform.position = new Vector3(xPostion,yPostion,zPostion); }
private bool m_Selected; // Whether the user is looking at the VRInteractiveItem currently. private void Awake() { if (m_InteractiveItem == null) { m_InteractiveItem = this.GetComponent <gazeableObject>(); } if (thePlayer == null) { thePlayer = GameObject.FindObjectOfType <mainPlayer>(); m_SelectionRadial = thePlayer.GetComponent <gazeTimerVisual>(); } }
// Use this for initialization void Start() { this.player_object = GameObject.Find("Player"); this.player_script = this.player_object.GetComponent <mainPlayer> (); this.image_ammo_full = GameObject.Find("legend_ammo_full"); this.image_ammo_empty = GameObject.Find("legend_ammo_empty"); this.weapon_name_object = GameObject.Find("value_weapon_name"); this.text_weapon_name = this.weapon_name_object.GetComponent <Text> (); this.ammo_numer_object = GameObject.Find("value_ammo_number"); this.text_ammo_numer = this.ammo_numer_object.GetComponent <Text> (); }
// checking bools objects. // Use this for initialization void Start () { Instance = this; player = GameObject.FindGameObjectWithTag("Player"); playerScript = player.GetComponent<mainPlayer>(); roadO = GameObject.FindGameObjectWithTag("MainCamera"); roadScript = roadO.GetComponent<ForegroundScript>(); currentLane = getRandomLane(); prevLane = currentLane; getColor(); currTime = 0; startTime = getStartTime(); }
void Start() { Score = 0; resultCanvas.enabled = false; playerCanvas.enabled = true; mPlay = player.GetComponent<mainPlayer>(); Time.timeScale = 1.0f; }