예제 #1
0
        public void Launch()
        {
            _leftTargetAttacher.FindAndAttach(LeftHandAnchorName, Emitter.root, _trLeft.gameObject.transform);
            _righTargetAttacher.FindAndAttach(RightHandAnchorName, Emitter.root, _trRight.gameObject.transform);

            _trLeft.Clear();
            _trRight.Clear();

            _leftTargetAttacher.Update();
            _righTargetAttacher.Update();

            _trLeft.enabled  = true;
            _trRight.enabled = true;
        }
예제 #2
0
        public void Launch()
        {
            _shurikenPs = Instantiate(ShurikenPs);
            _shurikenPs.transform.parent   = transform;
            _shurikenPs.transform.position = Vector3.zero;
            _shurikenPs.Play();

            _throwPs = Instantiate(ThrowPs);
            _throwPs.transform.parent   = _shurikenPs.transform;
            _throwPs.transform.position = Vector3.zero;

            _targetAttacher.FindAndAttach(AttachAnchorName, Emitter.root, _shurikenPs.transform);
            _targetAttacher.Update();

            _motionPs = Instantiate(MotionPs, _shurikenPs.transform.position, Quaternion.identity, _shurikenPs.transform);
            _motionPs.Play();
        }
        public void Launch()
        {
            //_grenade = Instantiate(GrenadeFx);
            //_grenade.transform.parent = transform;

            _targetAttacher.Offset         = FxAnchorOffset;
            _targetAttacher.RotationOffset = FxAnchorRotation;
            _targetAttacher.FindAndAttach(FxAnchorName, Emitter.root, GrenadeFx.transform);
            _targetAttacher.Update();

            _lerpMotion                    = GrenadeFx.gameObject.AddComponent <IFX_LerpMotion>();
            _lerpMotion.Speed              = Speed;
            _lerpMotion.ArcMotionHeight    = Height;
            _lerpMotion.IsArcMotionEnabled = true;
            _lerpMotion.TargetRotation     = Quaternion.identity;
            _lerpMotion.ChangeRotation     = true;
            _lerpMotion.Turn               = Turn;
        }
예제 #4
0
 private void Update()
 {
     _ifxTargetAttacher.Update();
 }