void Awake() { manager = this; for (int i = 0; i < poolingFromHierarchy.Count; ++i) { PoolingObjectFromHierarchyRequest(poolingFromHierarchy[i]); } for (int i = 0; i < prePoolingList.Count; ++i) { CreateInactiveObjectRequset(prePoolingList[i].name, prePoolingList[i].count); } }
void ExactlyLog(string str) { if (VEasyPoolerManager.manager.useDebugFlow == false) { return; } if (VEasyPoolerManager.IsExclude(originName, originTag) == true) { return; } Debug.Log(str); }
// //bool isMoving = false; //bool useLookAtDirection = false; //float speedDotPerFrame = 0.0f; //Vector3 direction = new Vector3(); //Vector3 toPosition = new Vector3(); // void Update() { if (isDying == true) { if (lifeTime > 0.0f) { lifeTime -= Time.deltaTime; } else { VEasyPoolerManager.ReleaseObjectRequest(gameObject); } } }
private void OnDestroy() { VEasyPoolerManager.ReleaseObjectRequest(gameObject); }