void Awake() { ThisTransform = GetComponent <RectTransform>(); player = GameObject.Find("ROBOT-BOY").GetComponent <RobotBoyController>(); BarMaxWidth = ThisTransform.sizeDelta.x; BarHeight = ThisTransform.sizeDelta.y; }
void Awake() { ThisBody = GetComponent <Rigidbody2D>(); ThisCollider = GetComponent <BoxCollider2D>(); ThisAnimator = GetComponent <Animator>(); RBCInstance = this; }