Files
FueraDeEscala/Assets/Game Kit Controller/Scripts/Combat System/Melee Combat System/meleeWeaponAttackListInfoSocket.cs

28 lines
1.0 KiB
C#
Raw Normal View History

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class meleeWeaponAttackListInfoSocket : MonoBehaviour
{
public meleeWeaponAttackInfo mainMeleeWeaponAttackInfo;
public grabPhysicalObjectMeleeAttackSystem mainGrabPhysicalObjectMeleeAttackSystem;
public void copyWeaponInfoToTemplate (bool settingInfoOnEditorTime)
{
if (mainGrabPhysicalObjectMeleeAttackSystem != null) {
mainGrabPhysicalObjectMeleeAttackSystem.setNewMeleeWeaponAttackInfoTemplate (mainMeleeWeaponAttackInfo, settingInfoOnEditorTime);
mainGrabPhysicalObjectMeleeAttackSystem.copyWeaponInfoToTemplate (settingInfoOnEditorTime);
}
}
public void copyTemplateToWeaponAttackInfo (bool settingInfoOnEditorTime)
{
if (mainGrabPhysicalObjectMeleeAttackSystem != null) {
mainGrabPhysicalObjectMeleeAttackSystem.setNewMeleeWeaponAttackInfoTemplate (mainMeleeWeaponAttackInfo, settingInfoOnEditorTime);
mainGrabPhysicalObjectMeleeAttackSystem.copyTemplateToWeaponAttackInfo (settingInfoOnEditorTime);
}
}
}