GetComponent() public method

public GetComponent ( bool isMine ) : Component
isMine bool
return Component
 public RigidbodyRotationProvider(System.Object obj)
 {
     component = ComponentHelper.GetComponent <Rigidbody>(obj);
 }
Beispiel #2
0
 public LightIntensityProvider(Object obj)
 {
     light = obj as Light ?? ComponentHelper.GetComponent <Light>(obj);
 }
Beispiel #3
0
 public ScaleProvider(System.Object obj)
 {
     component = ComponentHelper.GetComponent <Transform>(obj);
 }
Beispiel #4
0
 public LocalPositionProvider(System.Object obj)
 {
     component = ComponentHelper.GetComponent <Transform>(obj);
 }
Beispiel #5
0
 public MeshColorProvider(System.Object obj, Color defaultColor)
 {
     component         = ComponentHelper.GetComponent <MeshFilter>(obj);
     this.defaultColor = defaultColor;
 }
Beispiel #6
0
 public GraphicColorProvider(Object obj)
 {
     graphics = obj as MaskableGraphic ?? ComponentHelper.GetComponent <MaskableGraphic>(obj);
 }
Beispiel #7
0
 public TransformRotationProvider(System.Object obj)
 {
     component = ComponentHelper.GetComponent <Transform>(obj);
 }
Beispiel #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);
 }
Beispiel #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);
 }
 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);
 }
Beispiel #15
0
 public CameraRectSizeProvider(System.Object obj)
 {
     component = ComponentHelper.GetComponent <Camera>(obj);
 }