示例#1
0
 void Awake()
 {
     _rigidbody = GetComponent <Rigidbody>();
     _transform = GetComponent <Transform>();
     _easyAnimation.Initialize();
     _defaultPosition = transform.position;
 }
示例#2
0
 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();
 }
示例#3
0
 public void Setup(AnimationEventInvoker animationEventInvoker)
 {
     _easyAnimation = animationEventInvoker.GetComponent <EasyAnimation>();
     _easyAnimation.Initialize();
     _animationEventInvoker = animationEventInvoker;
 }