public void Copy(BehaviourEventInfo _info) { if (_info == null) { return; } ComponentName = _info.ComponentName; FunctionName = _info.FunctionName; ParameterType = _info.ParameterType; ParameterName = _info.ParameterName; ParameterDescription = _info.ParameterDescription; }
public void SetInfo(BehaviourEventInfo _event) { this.MethodName = _event.FunctionName; if (_event.ParameterType == BehaviourEventParameterType.Float) { this.ParameterType = AnimationEventParameterType.Float; } else if (_event.ParameterType == BehaviourEventParameterType.Integer) { this.ParameterType = AnimationEventParameterType.Integer; } else if (_event.ParameterType == BehaviourEventParameterType.String) { this.ParameterType = AnimationEventParameterType.String; } else { this.ParameterType = AnimationEventParameterType.None; } }
public BehaviourEventInfo(BehaviourEventInfo _info) { Copy(_info); }