Inheritance: AkEvent
Exemplo n.º 1
0
    private void OnDrawGizmosSelected()
    {
        if (!enabled)
        {
            return;
        }

        AkAmbient Ambient     = GetComponent <AkAmbient>();
        bool      showSpheres = true;

        if (Ambient && Ambient.multiPositionTypeLabel == MultiPositionTypeLabel.Large_Mode)
        {
            showSpheres = false;
        }

        if (showSpheres)
        {
            UnityEngine.Color SphereColor = UnityEngine.Color.yellow;
            SphereColor.a            = 0.25f;
            UnityEngine.Gizmos.color = SphereColor;

            UnityEngine.Gizmos.DrawSphere(gameObject.transform.position, innerRadius);
            UnityEngine.Gizmos.DrawSphere(gameObject.transform.position, outerRadius);
        }
    }
Exemplo n.º 2
0
    void CreateAmbient(AkDragDropData DDData)
    {
        AkAmbient ambient = Undo.AddComponent <AkAmbient>(gameObject);

        if (ambient != null)
        {
            SetTypeValue(ref ambient.valueGuid, ref ambient.eventID, DDData);
        }
    }
Exemplo n.º 3
0
    void CreateAmbient(Guid componentGuid, int ID)
    {
        AkAmbient ambient = Undo.AddComponent <AkAmbient>(gameObject);

        if (ambient != null)
        {
            ambient.valueGuid = componentGuid.ToByteArray();
            ambient.eventID   = ID;
        }
    }
Exemplo n.º 4
0
    void CreateAmbient(string componentGuid, int ID)
    {
        AkAmbient ambient = Undo.AddComponent <AkAmbient>(gameObject);

        if (ambient != null)
        {
            ambient.valueGuid = new System.Guid(componentGuid).ToByteArray();
            ambient.eventID   = ID;
        }
    }
    private new void OnEnable()
    {
        base.OnEnable();

        m_AkAmbient = target as AkAmbient;

        multiPositionType     = serializedObject.FindProperty("multiPositionTypeLabel");
        DefaultHandles.Hidden = hideDefaultHandle;

        if (!attSphereProperties.ContainsKey(target))
        {
            attSphereProperties.Add(target, AttenuationSphereOptions.Dont_Show);
        }

        currentAttSphereOp = attSphereProperties[target];

        AkWwiseXMLWatcher.Instance.XMLUpdated += PopulateMaxAttenuation;
    }
	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 ();

		EditorApplication.update += PopulateMaxAttenuation;
	}
Exemplo n.º 7
0
    public new void OnEnable()
    {
        base.OnEnable();

        m_AkAmbient = target as AkAmbient;

        multiPositionTypeProperty      = serializedObject.FindProperty("multiPositionTypeLabel");
        largeModePositionArrayProperty = serializedObject.FindProperty("LargeModePositions");

        if (!attSphereProperties.ContainsKey(target))
        {
            attSphereProperties.Add(target, AttenuationSphereOptions.Dont_Show);
        }

        currentAttSphereOp = attSphereProperties[target];

        AkWwiseXMLWatcher.Instance.XMLUpdated += PopulateMaxAttenuation;
    }
Exemplo n.º 8
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;
    }
Exemplo n.º 9
0
 void Awake()
 {
     akAmbient     = GetComponent <AkAmbient>();
     _prevPosition = transform.position;
 }
	void SetMultiPosTrigger(AkAmbient[] akAmbients)
	{
		for(int i = 0; i < akAmbients.Length; i++)
		{
			if(akAmbients[i].multiPositionTypeLabel == MultiPositionTypeLabel.MultiPosition_Mode && akAmbients[i].eventID == m_AkAmbient.eventID)
			{
				akAmbients[i].triggerList = m_AkAmbient.triggerList;
			}
		}
	}