コード例 #1
0
 void Start()
 {
     if (_inst != null)
     {
         Debug.LogWarning("Multiple instances of singleton exists!");
     }
     _inst  = this;
     agents = new List <Agent>();
 }
コード例 #2
0
 void Start()
 {
     if (_inst != null) Debug.LogWarning("Multiple instances of singleton exists!");
     _inst = this;
     agents = new List<Agent>();
 }