void OnTriggerStay(Collider other) { if (IPL == null) { IPL = Singleton_Service.GetSingleton <Input_Listeners>(); } }
void Start() { swordUI = Singleton_Service.GetSingleton <SwordUI>(); IPL = Singleton_Service.GetSingleton <Input_Listeners>(); rb = GetComponent <Rigidbody>(); //StartCoroutine("CheckShurikenParent"); }
// Use this for initialization void Start() { IPL = Singleton_Service.GetSingleton <Input_Listeners>(); trackedObj = GetComponent <SteamVR_TrackedObject>(); device = SteamVR_Controller.Input((int)trackedObj.index); rb = rotateParent.GetComponent <Rigidbody>(); }
// Use this for initialization void Start() { IPL = Singleton_Service.GetSingleton <Input_Listeners>(); WarningText.SetActive(false); switchTime = false; StartCoroutine("SwitchToFire"); }
void Start() { swordUI = Singleton_Service.GetSingleton <SwordUI>(); IPL = Singleton_Service.GetSingleton <Input_Listeners>(); rb = GetComponent <Rigidbody>(); this.GetComponent <CapsuleCollider>().isTrigger = true; swordSource = GetComponent <AudioSource>(); }
// Use this for initialization void Start() { IPL = Singleton_Service.GetSingleton <Input_Listeners>(); active = true; text.text = "Hellooo!!"; activate(false); right = hand.GetComponent <Right_VR_Cont>(); left = hand.GetComponent <Left_VR_Cont>(); }
// Use this for initialization void Start() { IPL = Singleton_Service.GetSingleton <Input_Listeners>(); IPL.rightHand = GetComponent <NVRHand>(); trackedObj = GetComponent <SteamVR_TrackedObject>(); ringDisplay = IPL.rightRingDisplay; source = GetComponent <AudioSource>(); Invoke("LateStart", 2f); }
// Use this for initialization void Start() { switch (upgradeType) { case UpgradeType.Health: if (PlayerPrefs.GetInt("healthUpgrade") == 0) { PlayerPrefs.SetInt("healthUpgrade", 500); value = 500; } else { value = PlayerPrefs.GetInt("healthUpgrade"); } break; case UpgradeType.Attack: if (PlayerPrefs.GetInt("attackUpgrade") == 0) { PlayerPrefs.SetInt("attackUpgrade", 3); value = 3; } else { value = PlayerPrefs.GetInt("attackUpgrade"); } break; case UpgradeType.Defense: if (PlayerPrefs.GetInt("defenseUpgrade") == 0) { PlayerPrefs.SetInt("defenseUpgrade", 5); value = 5; } else { value = PlayerPrefs.GetInt("defenseUpgrade"); } break; default: break; } player = Singleton_Service.GetSingleton <Player>(); scene = Singleton_Service.GetSingleton <SceneController>(); IPL = Singleton_Service.GetSingleton <Input_Listeners>(); rightHand = GameObject.Find("RightHand").transform; leftHand = GameObject.Find("LeftHand").transform; upgradeAudio = GetComponent <UpgradeAudio>(); expandRate = new Vector3((maxScale - minScale) / 10, (maxScale - minScale) / 10, (maxScale - minScale) / 10); StartCoroutine("MoveUp"); }
// Use this for initialization void Start() { if (transform.parent.gameObject.GetComponent <RightHand>() != null) { scene = Singleton_Service.GetSingleton <SceneController>(); IPL = Singleton_Service.GetSingleton <Input_Listeners>(); currentBall = Instantiate(energyBall, transform); currentBall.transform.localPosition = new Vector3(0f, 0.75f, 0f); currentBall.transform.localScale = new Vector3(0.1f, 0.1f, 0.1f); } }
void Start() { IPL = Singleton_Service.GetSingleton <Input_Listeners>(); swordUI = Singleton_Service.GetSingleton <SwordUI>(); source = GetComponent <AudioSource>(); attachedHand = GetComponent <NVRHand>(); if (attachedGun.gameObject.activeSelf) { canThrow = false; } else { canThrow = true; } }
// Use this for initialization void Start() { liquid.GetComponent <Renderer>().material.color = new Color(1, 1, 1, .2f); IPL = Singleton_Service.GetSingleton <Input_Listeners>(); GM = Singleton_Service.GetSingleton <GameManager>(); StartCoroutine("LookForAdditions"); boilDisplayMeter.SetActive(false); boilDisplay.SetActive(false); potionId = 0; exploded = false; source = GetComponent <AudioSource>(); }
void Start() { IPL = Singleton_Service.GetSingleton <Input_Listeners>(); if (IPL == null) { Debug.Assert(IPL != null, "No Input Listeners on Enemy State Pattern!"); } rb = this.GetComponent <Rigidbody>(); anim = this.GetComponentInChildren <Animator>(); offLink = GetComponent <OffMeshLink>(); player = GameObject.FindGameObjectWithTag("Player"); playerPosition = GameObject.FindGameObjectWithTag("Player Position").transform; agent = this.GetComponent <NavMeshAgent>(); GoToNextPoint(); currentState = patrolState; }
// Use this for initialization void Start() { IPL = Singleton_Service.GetSingleton<Input_Listeners> (); trackedObj = GetComponent<SteamVR_TrackedObject> (); GameObject laserObj = (GameObject)Instantiate(laserPrefab); GameObject reticleObj = (GameObject)Instantiate(reticlePrefab); laserObj.transform.SetParent(this.transform); reticleObj.transform.SetParent(this.transform); reticle = reticleObj.transform; laser = laserObj.GetComponent<LineRenderer>(); reticleLight = reticle.gameObject.GetComponent<Light>(); laser.gameObject.SetActive(true); reticle.gameObject.SetActive(true); }
void Start() { IPL = Singleton_Service.GetSingleton <Input_Listeners>(); if (Singleton_Service.GetSingleton <GM>()) { gm = Singleton_Service.GetSingleton <GM>(); } fireHealth = maxFireValue; currentPlayerHealth = maxPlayerHealth; UpdateStatsOnUI(); if (playMainTheme) { mainTheme.Play(); } if (playBossTheme) { bossTheme.Play(); } //StartCoroutine("Countdown"); }
// Use this for initialization void Start() { if (PlayerPrefs.GetInt("Level") == 1) { health = startingHealth; } else { health = PlayerPrefs.GetInt("Health"); health += healthIncrement; } if (healthText) { healthText.text = "HP: " + health; } IPL = Singleton_Service.GetSingleton <Input_Listeners>(); //Time.timeScale = 0.5f; GetComponent <ScreenFader>().fadeIn = true; }
// Use this for initialization void Start() { scene = Singleton_Service.GetSingleton <SceneController>(); player = Singleton_Service.GetSingleton <Player>(); IPL = Singleton_Service.GetSingleton <Input_Listeners>(); transform.parent.localScale = new Vector3(minScale, minScale, minScale); expandRate = new Vector3((maxScale - minScale) / 10, (maxScale - minScale) / 10, (maxScale - minScale) / 10); switch (weaponType) { case WeaponType.Weapon1: break; case WeaponType.Weapon2: value = 15; break; case WeaponType.Weapon3: value = 30; break; case WeaponType.Weapon4: value = 50; break; case WeaponType.Shield2: value = 15; break; case WeaponType.Shield3: value = 30; break; default: break; } }
void Start() { numShurikens = 0; IPL = Singleton_Service.GetSingleton <Input_Listeners>(); }
void Start() { IPL = Singleton_Service.GetSingleton <Input_Listeners>(); swordUI = Singleton_Service.GetSingleton <SwordUI>(); audio = GetComponent <AudioSource>(); }
// Use this for initialization void Start() { IPL = GameObject.Find("GM").GetComponent <Input_Listeners>(); trackedObj = GetComponent <SteamVR_TrackedObject>(); }
// Use this for initialization void Start() { IPL = Singleton_Service.GetSingleton <Input_Listeners>(); CreateFireballEffect(); }
private void Start() { IPL = Singleton_Service.GetSingleton <Input_Listeners>(); StartCoroutine("CheckTutorialProgress"); PlayerPrefs.SetInt("Level", 1); }
// Use this for initialization void Start() { IPL = Singleton_Service.GetSingleton <Input_Listeners>(); }
// Use this for initialization void Start() { IPL = Singleton_Service.GetSingleton <Input_Listeners>(); CreateBlizzardEffect(); }
// Use this for initialization void Start() { IPL = Singleton_Service.GetSingleton <Input_Listeners>(); GetComponent <ScreenFader>().fadeIn = true; }
// Use this for initialization void Start() { IPL = GameObject.Find("GM").GetComponent <Input_Listeners>(); spawnPoint = GameObject.Find("SpawnPoint"); sceneController = spawnPoint.gameObject.GetComponent <SceneController>(); }
void Start() { IPL = Singleton_Service.GetSingleton <Input_Listeners>(); sheathSource = GetComponent <AudioSource>(); SpawnNewSword(); }
// Use this for initialization void Start() { IPL = Singleton_Service.GetSingleton <Input_Listeners>(); CreateTornadoEffect(); }
// Use this for initialization void Start() { IPL = Singleton_Service.GetSingleton <Input_Listeners>(); trackedObj = GetComponent <SteamVR_TrackedObject>(); }
void Start() { beatHighScore.enabled = false; int currLevel = PlayerPrefs.GetInt("CurrentLevel"); switch (currLevel) { case 1: int currScore = PlayerPrefs.GetInt("CurrentScoreLevel1"); score.text = "Your Score: " + currScore; if (currScore > PlayerPrefs.GetInt("HighScoreLevel1")) { beatHighScore.enabled = true; beatHighScore.text = "You've beaten the previous" + System.Environment.NewLine + "high score of " + PlayerPrefs.GetInt("HighScoreLevel1", 0); PlayerPrefs.SetInt("HighScoreLevel1", currScore); PlayerPrefs.SetInt("CurrentScoreLevel1", 0); } break; case 2: currScore = PlayerPrefs.GetInt("CurrentScoreLevel2"); score.text = "Your Score: " + currScore; if (currScore > PlayerPrefs.GetInt("HighScoreLevel2")) { beatHighScore.enabled = true; beatHighScore.text = "You've beaten the previous" + System.Environment.NewLine + "high score of " + PlayerPrefs.GetInt("HighScoreLevel2", 0); PlayerPrefs.SetInt("HighScoreLevel2", currScore); PlayerPrefs.SetInt("CurrentScoreLevel2", 0); } break; case 3: currScore = PlayerPrefs.GetInt("CurrentScoreLevel3"); score.text = "Your Score: " + currScore; if (currScore > PlayerPrefs.GetInt("HighScoreLevel3")) { beatHighScore.enabled = true; beatHighScore.text = "You've beaten the previous" + System.Environment.NewLine + "high score of " + PlayerPrefs.GetInt("HighScoreLevel3", 0); PlayerPrefs.SetInt("HighScoreLevel3", currScore); PlayerPrefs.SetInt("CurrentScoreLevel3", 0); } break; case 4: currScore = PlayerPrefs.GetInt("CurrentScoreLevel4"); score.text = "Your Score: " + currScore; if (currScore > PlayerPrefs.GetInt("HighScoreLevel4")) { beatHighScore.enabled = true; beatHighScore.text = "You've beaten the previous" + System.Environment.NewLine + "high score of " + PlayerPrefs.GetInt("HighScoreLevel4", 0); PlayerPrefs.SetInt("HighScoreLevel4", currScore); PlayerPrefs.SetInt("CurrentScoreLevel4", 0); } break; case 0: currScore = PlayerPrefs.GetInt("CurrentScoreBoss"); score.text = "Your Score: " + currScore; if (currScore > PlayerPrefs.GetInt("HighScoreBoss")) { beatHighScore.enabled = true; beatHighScore.text = "You've beaten the previous" + System.Environment.NewLine + "high score of " + PlayerPrefs.GetInt("HighScoreBoss", 0); PlayerPrefs.SetInt("HighScoreBoss", currScore); PlayerPrefs.SetInt("CurrentScoreBoss", 0); } break; } PlayerPrefs.Save(); IPL = Singleton_Service.GetSingleton <Input_Listeners>(); trackedObj = GetComponent <SteamVR_TrackedObject>(); GameObject laserObj = (GameObject)Instantiate(laserPrefab); GameObject reticleObj = (GameObject)Instantiate(reticlePrefab); laserObj.transform.SetParent(this.transform); reticleObj.transform.SetParent(this.transform); reticle = reticleObj.transform; laser = laserObj.GetComponent <LineRenderer>(); reticleLight = reticle.gameObject.GetComponent <Light>(); laser.gameObject.SetActive(true); reticle.gameObject.SetActive(true); }