public void AddToScene() { if (!inScene) { decal = TerrainManager.Instance.TerrainDecalManager.CreateDecalElement(imageName, position.x, position.y, size.x, size.y, rotation, 0f, 0f, priority); inScene = true; } }
public void RemoveDecalElement(DecalElement element) { elements.Remove(element); }
public DecalElement CreateDecalElement(string imageName, float posX, float posZ, float sizeX, float sizeZ, float rot, float lifetime, float deleteRadius, int priority) { DecalElement element = new DecalElement(imageName, posX, posZ, sizeX, sizeZ, rot, lifetime, deleteRadius, priority, this); elements.Add(element); sorted = false; return element; }