void Awake() { Transform.parent = null; flatSphere = ResourcePool.Rent <MeshMarkerResource>(Resource.Displays.Sphere, Transform); flatSphere.ShadowsEnabled = false; flatSphere.EmissiveColor = Color.white; flatSphere.Layer = LayerType.IgnoreRaycast; tooltip = ResourcePool.RentDisplay <Tooltip>(Transform); tooltip.Layer = LayerType.IgnoreRaycast; tooltip.UseAnimation = false; }
void Start() { resource = GetComponent <MeshMarkerResource>(); }