Esempio n. 1
0
        public void ReuseSplat(Vector3 pos, Quaternion rotation, Color color, Vector3 scale)
        {
            transform.position   = pos;
            transform.rotation   = rotation;
            transform.localScale = scale;
            splatterScript.transform.GetComponent <MeshRenderer>().material.color = color;

            if (hasPoolObjectComponent)
            {
                splatterScript.OnObjectReuse();
            }
            gameObject.SetActive(true);
        }