Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
 void Start()
 {
     resource = GetComponent <MeshMarkerResource>();
 }