public ColliderTriggerInfo Clone() { ColliderTriggerInfo copy = new ColliderTriggerInfo(); copy.m_ColliderType = m_ColliderType; copy.m_Prefab = m_Prefab; copy.m_Position = m_Position; copy.m_Bone = m_Bone; copy.m_IsAttach = m_IsAttach; copy.m_AttachConfig = m_AttachConfig; copy.m_Size = m_Size; copy.m_Eular = m_Eular; copy.m_IsShow = m_IsShow; copy.m_StateImpacts = m_StateImpacts; copy.m_CollideLayerHandler = m_CollideLayerHandler; m_Collider = null; return(copy); }
protected override void Load(ScriptableData.FunctionData funcData) { ScriptableData.CallData callData = funcData.Call; if (null == callData) { return; } int num = callData.GetParamNum(); if (num >= 6) { m_StartTime = long.Parse(callData.GetParamId(0)); m_RemainTime = long.Parse(callData.GetParamId(1)); m_IsClearWhenFinish = bool.Parse(callData.GetParamId(2)); m_IsAlwaysEnterDamage = bool.Parse(callData.GetParamId(3)); m_DamageInterval = long.Parse(callData.GetParamId(4)); m_MaxDamageTimes = int.Parse(callData.GetParamId(5)); } //碰撞体数据 m_ColliderInfo = new ColliderTriggerInfo(); m_ColliderInfo.Load(funcData.Statements); }