GetComponent() public method

public GetComponent ( bool isMine ) : Component
isMine bool
return Component
 public RigidbodyRotationProvider(System.Object obj)
 {
     component = ComponentHelper.GetComponent <Rigidbody>(obj);
 }
示例#2
0
 public LightIntensityProvider(Object obj)
 {
     light = obj as Light ?? ComponentHelper.GetComponent <Light>(obj);
 }
示例#3
0
 public ScaleProvider(System.Object obj)
 {
     component = ComponentHelper.GetComponent <Transform>(obj);
 }
示例#4
0
 public LocalPositionProvider(System.Object obj)
 {
     component = ComponentHelper.GetComponent <Transform>(obj);
 }
示例#5
0
 public MeshColorProvider(System.Object obj, Color defaultColor)
 {
     component         = ComponentHelper.GetComponent <MeshFilter>(obj);
     this.defaultColor = defaultColor;
 }
示例#6
0
 public GraphicColorProvider(Object obj)
 {
     graphics = obj as MaskableGraphic ?? ComponentHelper.GetComponent <MaskableGraphic>(obj);
 }
示例#7
0
 public TransformRotationProvider(System.Object obj)
 {
     component = ComponentHelper.GetComponent <Transform>(obj);
 }
示例#8
0
 public MeshColorProvider(System.Object obj)
     : this(obj, Color.clear)
 {
     component = ComponentHelper.GetComponent <MeshFilter>(obj);
 }
 public RectTransformSizeDeltaProvider(System.Object obj)
 {
     component = ComponentHelper.GetComponent <RectTransform>(obj);
 }
示例#10
0
        private readonly string fieldName; //_TintColor
        #endregion

        #region Constructor
        public RendererFloatProvider(Object obj, string feldName)
        {
            material  = obj as Material ?? ComponentHelper.GetComponent <Renderer>(obj).material;
            fieldName = feldName;
        }
 public SpriteRendererAlphaProvider(Object obj)
 {
     renderer = obj as SpriteRenderer ?? ComponentHelper.GetComponent <SpriteRenderer>(obj);
 }
 public CameraOrthoSizeProvider(System.Object obj)
 {
     camera = ComponentHelper.GetComponent <Camera>(obj);
 }
示例#13
0
 public RendererColorProvider(Object obj, string fieldName)
 {
     material       = obj as Material ?? ComponentHelper.GetComponent <Renderer>(obj).material;
     this.fieldName = fieldName;
 }
 public TransformShortestRotationLocalProvider(System.Object obj)
 {
     component = ComponentHelper.GetComponent <Transform>(obj);
 }
示例#15
0
 public CameraRectSizeProvider(System.Object obj)
 {
     component = ComponentHelper.GetComponent <Camera>(obj);
 }