public static AkWwiseXMLWatcher GetInstance() { if (Instance == null) { Instance = new AkWwiseXMLWatcher(); } return(Instance); }
public static AkWwiseXMLWatcher GetInstance() { if (Instance == null) { Instance = new AkWwiseXMLWatcher (); } return Instance; }
private new void OnEnable() { base.OnEnable(); m_AkAmbient = target as AkAmbient; multiPositionType = serializedObject.FindProperty("multiPositionTypeLabel"); DefaultHandles.Hidden = hideDefaultHandle; if (!attSphereProperties.ContainsKey(target.GetInstanceID())) { attSphereProperties.Add(target.GetInstanceID(), AttenuationSphereOptions.Dont_Show); } currentAttSphereOp = attSphereProperties[target.GetInstanceID()]; AkWwiseXMLWatcher.GetInstance().StartXMLWatcher(); UnityEditor.EditorApplication.update += PopulateMaxAttenuation; }