Ejemplo n.º 1
0
 void Start()
 {
     _RectTransform      = gameObject.GetComponent <RectTransform>();
     _width              = _RectTransform.rect.width;
     _height             = _RectTransform.rect.height;
     _BoxCollider2D      = gameObject.GetComponent <BoxCollider2D>();
     _BoxCollider2D.size = new Vector2(_width, _height);
     _ClonePool          = GameObject.FindObjectOfType <ClonePool>();
 }
Ejemplo n.º 2
0
 void Awake()
 {
     _CanvasRectTransform = transform.parent.GetComponent <RectTransform>();
     _BallRectTransform   = gameObject.GetComponent <RectTransform>();
     _ClonePool           = GameObject.FindObjectOfType <ClonePool>();
 }
Ejemplo n.º 3
0
 void Awake()
 {
     instance        = this;
     CameraPlayerMap = new Dictionary <CameraEdgeController, PlayerMovement>();
     cornerMap       = new Dictionary <Corner, CameraEdgeController>();
 }