summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Unit/Events/EventProjectile.cs
blob: 5f9a22aa2826f6618a5646789510a0ba0d2dff9e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class EventProjectile : AnimationEventBase
{
    public enum EMoveType
    {
        GoStraight,
        Curve,
    }

    public override TimelineEventProxy.EEventType type { get { return TimelineEventProxy.EEventType.EventProjectile; } }

    public override string shortName { get { return "P"; } }

    [Tooltip("Projectile path")]
    public string projectilePath;

    [Tooltip("Is attached to a bone")]
    public bool attachedToBone;

    [Tooltip("Bone path attach to")]
    public string bone;

    [Tooltip("Position offset")]
    public Vector3 posOffset;

    [Tooltip("Rotation in euler")]
    public Vector3 rotation;

    [When("moveType", EMoveType.GoStraight), Tooltip("Scale")]
    public Vector3 scale = Vector3.one;

    [Comment("[ 运动方式 ]", TextAnchor.MiddleCenter)]

    public EMoveType moveType;

    [When("moveType", EMoveType.GoStraight), Tooltip("初始速度")]
    public Vector3 velocity;

	public bool towardDirection;

    [Comment("[ 击中反馈 ]", TextAnchor.MiddleCenter)]

    public string sparkPath;

    [Tooltip("击中效果")]
    public ColliderBox.EHitResponse hitResponse;

}