void Awake() { _rigidbody = GetComponent <Rigidbody>(); _transform = GetComponent <Transform>(); _easyAnimation.Initialize(); _defaultPosition = transform.position; }
void Awake() { _rigidbody = GetComponent <Rigidbody>(); _transform = GetComponent <Transform>(); _renderer = GetComponentInChildren <Renderer>(); _collider = GetComponent <Collider>(); _isUpdate = false; _time = 0; _randomAccelerator = UnityEngine.Random.Range(0, 1); _defaultPosition = _transform.position; _easyAnimation.Initialize(); }
public void Setup(AnimationEventInvoker animationEventInvoker) { _easyAnimation = animationEventInvoker.GetComponent <EasyAnimation>(); _easyAnimation.Initialize(); _animationEventInvoker = animationEventInvoker; }