Exemple #1
0
        // Use this for initialization
        void Awake()
        {
            if (instance == null)
            {
                instance = this;
            }
            else
            {
                Destroy(gameObject);
            }
            DontDestroyOnLoad(instance);

            theAudioScource = GetComponent <AudioSource>();
        }
Exemple #2
0
 void Start()
 {
     inst = FearController.instance;
 }