예제 #1
0
 // 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;
 }
예제 #2
0
 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;
 }
예제 #4
0
    //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>();
    }
예제 #5
0
    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
    }
예제 #6
0
 // Start is called before the first frame update
 void Start()
 {
     musicBox = Locator.instance.GetBeat();
     //Debug.Log("musicbox " + musicBox);
 }
예제 #7
0
 private void Start()
 {
     beatAnal = GameObject.FindWithTag("MusicBox").GetComponent <BeatAnalyse>();
     renderer = gameObject.GetComponent <MeshRenderer>();
 }