本文整理汇总了C#中SkillSystem.SkillInstance.AddImpactForInit方法的典型用法代码示例。如果您正苦于以下问题:C# SkillInstance.AddImpactForInit方法的具体用法?C# SkillInstance.AddImpactForInit怎么用?C# SkillInstance.AddImpactForInit使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SkillSystem.SkillInstance
的用法示例。
在下文中一共展示了SkillInstance.AddImpactForInit方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Load
protected override void Load(Dsl.CallData callData, SkillInstance instance)
{
int num = callData.GetParamNum();
if (num > 0) {
m_EffectPath.Set(callData.GetParam(0));
}
if (num > 1) {
m_EmitBone.Set(callData.GetParam(1));
}
if (num > 2) {
m_EmitImpact = int.Parse(callData.GetParamId(2));
}
if (num > 3) {
m_EmitSpeed.Set(callData.GetParam(3));
}
if (num > 4) {
StartTime = long.Parse(callData.GetParamId(4));
}
if (num > 5) {
m_IsExternalImpact = callData.GetParamId(5) == "true";
}
instance.AddImpactForInit(this, m_EmitImpact, m_IsExternalImpact);
}
示例2: Load
protected override void Load(Dsl.CallData callData, SkillInstance instance)
{
instance.AddImpactForInit(this);
int num = callData.GetParamNum();
if (num >= 6) {
StartTime = long.Parse(callData.GetParamId(0));
m_RelativeCenter.x = float.Parse(callData.GetParamId(1));
m_RelativeCenter.y = float.Parse(callData.GetParamId(2));
m_RelativeCenter.z = float.Parse(callData.GetParamId(3));
m_RelativeToTarget = callData.GetParamId(4) == "true";
m_DurationTime.Set(callData.GetParam(5));
m_IntervalTime.Set(callData.GetParam(6));
}
}