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

        RBCInstance = this;
    }