コード例 #1
0
    void Awake()
    {
        if (Instance != null && this != Instance)
        {
            //There is already a copy of this script running
            Destroy(this);
            return;
        }

        Instance = this;
    }
コード例 #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>();
 }