var playOnAwake : bool
Description
If set to true, the audio source will automatically start playing on awake
if(!audio.playOnAwake) {
audio.Play(); }
using UnityEngine;
using System.Collections;
public class example :
MonoBehaviour {
void Awake() {
if (!audio.playOnAwake)
audio.Play();
}
}
import UnityEngine
import System.Collections
class example(
MonoBehaviour):
def
Awake():
if not audio.playOnAwake:
audio.Play()