コード例 #1
0
 public void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
     }
     else
     {
         if (Instance != this)
         {
             Destroy(this);
         }
     }
 }
コード例 #2
0
 private void Start()
 {
     objectPooler = objectpooler.Instance; // Grabbing the object pooler to use in spawning
 }
コード例 #3
0
 void Awake()
 {
     SharedInstance = this;
 }