// 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; }
void Awake() { //static으로 선언한 NewObjPooling current에 접근 current = this; }
private void Awake() { SharedInstance = this; }
private void Start() { objectPoolingSystem = ObjectPoolingSystem.SharedInstance; }