// Use this for initialization void Start() { gameControl = FindObjectOfType <Transitioner> (); EffectControl = FindObjectOfType <MovementTimeControl> (); Controller = GetComponent <SteamVR_Behaviour_Pose>(); BeginAction.AddOnStateDownListener(TriggerAction, handType); }
/* * public float FadeTime; //57 * public float FastStayTime; //10 * public float RainTime; //90 * public float EndPauseTime; //15 */ void Start() { EffectControl = FindObjectOfType <MovementTimeControl>(); cameraShifter = GetComponent <ViewShift>(); StopRain = false; isStarted = false; StartCoroutine(DelayActivate()); }