Пример #1
0
 // Use this for initialization
 void Start()
 {
     //Using object pool for some objects to do optimization
     _scriptLeftStraightPool   = poolManagerForLeftSideStraight.GetComponent <ObjectPoolingDemo>();
     _scriptLeftDifferentPool  = poolManagerForLeftSideDifferent.GetComponent <ObjectPoolingDemo>();
     _scriptRightStraightPool  = poolManagerForRightSideStraight.GetComponent <ObjectPoolingDemo>();
     _scriptRightDifferentPool = poolManagerForRightSideDifferent.GetComponent <ObjectPoolingDemo>();
 }
Пример #2
0
 void Awake()
 {
     instance = this;
 }