Ejemplo n.º 1
0
    void Awake()
    {
        if (Instance != null && this != Instance)
        {
            //There is already a copy of this script running
            Destroy(this);
            return;
        }

        Instance = this;
    }
Ejemplo n.º 2
0
 public virtual void InitRecorders()
 {
     // TODO wire up to turn off and on on PC and mobile
     //raceRecorders = Recorders.Instance;
     audioRecorder = gameObject.AddComponent <AudioRecordObject>();
 }