Example #1
0
 // Use this for initialization
 private void Start()
 {
     objectPoolingSystem = ObjectPoolingSystem.SharedInstance;
     randomTransform     = new System.Random();
     possiblePositions   = new List <Transform>
     {
         frontTurretEnd,
         leftTurretEnd,
         rightTurretEnd,
     };
 }
 // similar to a singleton constructor.
 private void Awake()
 {
     instance = this;
 }
Example #3
0
 void Awake()
 {
     //static으로 선언한 NewObjPooling current에 접근
     current = this;
 }
 private void Awake()
 {
     SharedInstance = this;
 }
Example #5
0
 private void Start()
 {
     objectPoolingSystem = ObjectPoolingSystem.SharedInstance;
 }