本文整理匯總了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));
}
}