void Awake() { renderer.material = set_material_alpha(this.renderer.material, 2); obj_pool_api = GameObject.FindGameObjectWithTag("ObjectPoolManager").GetComponent<ObjectPoolBehaviour>(); if(obj_pool_api == null) { Debug.LogError("No access to ObjectPoolApi found!"); } }
void Awake() { // Caching the particle's Mesh Filter :) //GameObject helper = GameObject.CreatePrimitive(PrimitiveType.Plane); //_helper_mesh = helper.GetComponent<MeshFilter>().mesh; //Destroy(helper); obj_pool_api = GameObject.FindGameObjectWithTag("ObjectPoolManager").GetComponent<ObjectPoolBehaviour>(); if(obj_pool_api == null) { Debug.LogError("No access to ObjectPoolApi found!"); } }