// Start is called before the first frame update void Start() { animator = GetComponent <Animator>(); isBreakingHash = Animator.StringToHash("isBreaking"); isFinishedHash = Animator.StringToHash("isFinished"); animatedRobot = GetComponentInChildren <AnimatedRobotCollision>(); }
private void Start() { robot = GetComponentInParent <Robot>(); animatedRobot = GetComponentInChildren <AnimatedRobotCollision>(); }