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>(); }
void Awake() { _CanvasRectTransform = transform.parent.GetComponent <RectTransform>(); _BallRectTransform = gameObject.GetComponent <RectTransform>(); _ClonePool = GameObject.FindObjectOfType <ClonePool>(); }
void Awake() { instance = this; CameraPlayerMap = new Dictionary <CameraEdgeController, PlayerMovement>(); cornerMap = new Dictionary <Corner, CameraEdgeController>(); }