Esempio n. 1
0
 public void ParentAndPositionSpectrogramGroup(SpectrogramGroup group, Transform parent, Vector3 position, Quaternion rotation, Vector3 localScale)
 {
     if (group)
     {
         group.transform.SetParent(parent);
         group.transform.position      = position;
         group.transform.localPosition = GetSaberLocalPositionTarget();
         group.transform.rotation      = rotation;
         group.transform.localScale    = localScale;
     }
 }
Esempio n. 2
0
        public void InstantiateRightSpectrogramGroup()
        {
            LoadSpectrogramPrefab();

            rightSpectro = new GameObject("RightSpectrogram").AddComponent <SpectrogramGroup>();
            rightSpectro.InstantiateBars(_spectroBarPrefab);
            rightSpectro.SetLightDir(new Vector4(-1, -1, 0, 1));
            rightSpectro.SetAmbient(0.25f);
            rightSpectro.SetGlow(0.25f);
            rightSpectro.SetTransparency(Plugin.Settings.Transparency);
            rightSpectro.UseGrabpass(ShouldUseGrabpass());
            rightSpectro.UseBloomPrePass(Plugin.Settings.BloomPrePass);
        }
Esempio n. 3
0
 public void CleanupSpectrogramGroups()
 {
     if (leftSpectro)
     {
         DestroyImmediate(leftSpectro);
     }
     if (rightSpectro)
     {
         DestroyImmediate(rightSpectro);
     }
     leftSpectro  = null;
     rightSpectro = null;
 }