// Start is called before the first frame update
    void Start()
    {
        animator       = GetComponent <Animator>();
        isBreakingHash = Animator.StringToHash("isBreaking");
        isFinishedHash = Animator.StringToHash("isFinished");

        animatedRobot = GetComponentInChildren <AnimatedRobotCollision>();
    }
Example #2
0
 private void Start()
 {
     robot         = GetComponentInParent <Robot>();
     animatedRobot = GetComponentInChildren <AnimatedRobotCollision>();
 }