// Use this for initialization void Start() { // Script References shipGraphics = GetComponent<ShipGraphics>(); shipPhysicsScript = GetComponent<ShipPhysicsScript>(); twirlEffect = GetComponentInChildren<TwirlEffect>(); // Component Variables cam = GetComponentInChildren<Camera>(); body = GetComponent<Rigidbody>(); model = transform.Find("Model").gameObject; capsuleCollider = GetComponentInChildren<CapsuleCollider>(); boxCollider = GetComponentInChildren<BoxCollider>(); lockSound = GetComponent<AudioSource>(); // Control Variables mouseSensitivity = 8.0f; //mouseThreshold = 8.0f; //buttonSensitivity = 0.05f; //buttonThreshold = 0.05f; horTranslation = 0.0f; verTranslation = 0.0f; enemyNoLock = (Material)Resources.Load("Crosshair"); enemyLock = (Material)Resources.Load("Crosshair_Enemy"); trackedObject = null; trackingResults = null; shootWaitTime = 0.0f; targetTime = 0.0f; hits = 0; crystals = 0; }
// Use this for initialization void Start() { gc = gameObject.GetComponent<GameController>(); be = gameObject.GetComponent<BlurEffect>(); cs = gameObject.GetComponent<CameraShake>(); fe = gameObject.GetComponent<FadeEffect>(); te = gameObject.GetComponent<TwirlEffect>(); gt = gameObject.GetComponent<GameTimer>(); }
// Use this for initialization void Start() { gc = gameObject.GetComponent <GameController>(); be = gameObject.GetComponent <BlurEffect>(); cs = gameObject.GetComponent <CameraShake>(); fe = gameObject.GetComponent <FadeEffect>(); te = gameObject.GetComponent <TwirlEffect>(); gt = gameObject.GetComponent <GameTimer>(); }
private void OnBeginEffect(UnityEventArgs <FXArgs> p_args) { m_DoubleViewEffect = FXMainCamera.Instance.CurrentCamera.gameObject.AddComponent <DoubleViewEffect>(); m_DoubleViewEffect.invertShader = Shader.Find("Hidden/InvertColor"); m_DoubleViewEffect.pixelmovement = 0f; m_DoubleViewEffect.colorInvert = 0.1f; m_TwirlEffect = FXMainCamera.Instance.CurrentCamera.gameObject.AddComponent <TwirlEffect>(); m_TwirlEffect.shader = Shader.Find("Hidden/Twirt Effect Shader"); m_TwirlEffect.radius.x = 0.6f; m_TwirlEffect.radius.y = 0.6f; m_TwirlEffect.angle = 1f; enabled = true; m_moveTarget = 100f; m_colorTarget = 1f; m_turnTarget = 190f; }
// Use this for initialization void Start() { audio = GetComponent<AudioSource>(); audio.volume = 0; audio.enabled = false; enabled = false; increasing = false; decreasing = false; countingDown = false; NPCsLookingAtPlayer = "null_npc"; PlayerLookingNPCTarget = "null_player"; currentBlur = GetComponent<Blur>(); currentVign = GetComponent<Vignetting>(); currentTwirl = GetComponent<TwirlEffect>(); currentVortex = GetComponent<VortexEffect>(); vignDefaultIntensity = currentVign.intensity; currentBlur.enabled = false; currentVign.enabled = false; currentTwirl.enabled = false; currentVortex.enabled = false; }
// Use this for initialization void Start() { eff = this.GetComponent <TwirlEffect> (); }