コード例 #1
0
 private void Awake()
 {
     if (_instance != null)
     {
         Destroy(this);
     }
     _instance = this;
     billy     = FindObjectOfType <BillyController>();
     spawner   = FindObjectOfType <FoodSpawner>();
 }
コード例 #2
0
ファイル: BillyController.cs プロジェクト: ZayshaaCodes/LD46
 private void OnEnable()
 {
     instance = this;
 }