void Awake()
 {
     if (instance != null && instance != this)
     {
         Destroy(this.gameObject);
     }
     else
     {
         instance = this;
     }
 }
Exemple #2
0
 // Start is called before the first frame update
 void Awake()
 {
     sliders = new Slider[] { musicSlider, fellowSlider, teachSlider, spiritSlider, servingSlider };
     pDan    = PDanScript.instance;
 }