示例#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;
        }
示例#2
0
 void Start()
 {
     resource = GetComponent <MeshMarkerResource>();
 }