Exemplo n.º 1
0
    public static AkWwiseXMLWatcher GetInstance()
    {
        if (Instance == null)
        {
            Instance = new AkWwiseXMLWatcher();
        }

        return(Instance);
    }
	public static AkWwiseXMLWatcher GetInstance()
	{
		if (Instance == null)
		{
			Instance = new AkWwiseXMLWatcher ();
		}
		
		return Instance;
	}
Exemplo n.º 3
0
    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;
    }