// Start is called before the first frame update void Start() { material = gameObject.GetComponent <MeshRenderer>().material; musicBox = Locator.instance.GetBeat(); baseIntensity = material.GetFloat("_Intensity"); maxIntensity = baseIntensity + intensityIncrease; maxOnHitIntensity = baseIntensity + intensityIncreaseOnHit; }
void Start() { inputController = GetComponent <VirtuellController>(); beatBox = GameObject.FindWithTag("MusicBox").GetComponent <BeatAnalyse>(); anim = gameObject.GetComponent <Animator>(); controller = gameObject.GetComponent <CharacterController>(); cam = Camera.main; }
// Start is called before the first frame update void Start() { beatBox = GameObject.FindWithTag("MusicBox").GetComponent <BeatAnalyse>(); boss = GameObject.FindWithTag("Boss"); anim = gameObject.GetComponent <Animator>(); rb = gameObject.GetComponent <Rigidbody>(); source = gameObject.GetComponent <AudioSource>(); //controller = gameObject.GetComponent<CharacterController>(); cam = Camera.main; }
//bool shakeEnabled = false; //float shakeIntensity; //public float shakeIntensityFirst; //public float shakeIntensitySecond; //public float shakeIntensityFinal; // //public float shakeDuration; //public float shakeSpeed; //float shakeTimer; // Start is called before the first frame update void Start() { playerAnim = gameObject.GetComponent <Animator>(); //source = gameObject.GetComponent<AudioSource>(); markedTargets = new List <GameObject>(); activeMarkers = new List <GameObject>(); juiceMeter = Locator.instance.GetJuiceMeter(); beatAnalyse = Locator.instance.GetBeat(); nikCam = Locator.instance.GetNikCam().GetComponent <CameraFollow>(); zoomSpeedZeroBase = nikCam.zoomSpeedZero; zoomSpeedOneBase = nikCam.zoomSpeedOne; zoomSpeedTwoBase = nikCam.zoomSpeedTwo; zoomSpeedFourBase = nikCam.zoomSpeedFour; //shakeTimer = shakeDuration; player = GetComponent <PlayerController>(); }
private void Awake() { if (instance == null) { instance = this; } else { Destroy(gameObject); } //#region CollectingReturnables musicBox = GameObject.FindWithTag("MusicBox").GetComponent <BeatAnalyse>(); juiceMeter = GameObject.FindWithTag("JuiceMeter").GetComponent <Slider>(); nikCam = GameObject.FindWithTag("MainCamera"); canvas = GameObject.FindWithTag("Canvas"); //Debug.Log("This " + instance.gameObject.name + " musicbox" + instance.musicBox); playerPosition = GameObject.FindWithTag("Player").GetComponent <Transform>(); //#endregion }
// Start is called before the first frame update void Start() { musicBox = Locator.instance.GetBeat(); //Debug.Log("musicbox " + musicBox); }
private void Start() { beatAnal = GameObject.FindWithTag("MusicBox").GetComponent <BeatAnalyse>(); renderer = gameObject.GetComponent <MeshRenderer>(); }