ActionDirector  1.0.0
The action director's cut for rapid actions integration
ActionDirector.ActionPlaySound Class Reference

Play a sound. More...

Inheritance diagram for ActionDirector.ActionPlaySound:

Public Member Functions

override void Run ()
 
override void Step (float delta)
 
override void Stop ()
 

Public Attributes

AudioSource audioSource
 
float timeStart = 0.0f
 
bool waitForEndSound = false
 

Detailed Description

Play a sound.

This action will play a sound. The action will end after starting the sound. If waitForEndSound is check, action will only end when the sound is at the end. Use timeStart to start at a specific time.

Member Data Documentation

AudioSource ActionDirector.ActionPlaySound.audioSource

The audio source to play

float ActionDirector.ActionPlaySound.timeStart = 0.0f

Set the starting position if not at the beginning

bool ActionDirector.ActionPlaySound.waitForEndSound = false

Should the action end only when the sound is done?


The documentation for this class was generated from the following file: