Exemplo n.º 1
0
        protected override void OnTrigger(float timeSinceTrigger)
        {
            _startPosition = Owner.localPosition;
            base.OnTrigger(timeSinceTrigger);

            Owner.Rotate(Vector3.up * _angle);
            Vector3 from = Owner.position;
            Vector3 to   = Owner.position + Owner.forward * _length;

            _tween = new FTweenVector3(from, to);
        }
Exemplo n.º 2
0
 protected override void SetDefaultValues()
 {
     _tween = new FTweenVector3(Vector3.zero, Vector3.forward);
 }
Exemplo n.º 3
0
 protected override void SetDefaultValues()
 {
     _tween = new FTweenVector3(Vector3.zero, new Vector3(0, 360, 0));
 }