private void OnEnable() { M = (RiderCombat)target; script = MonoScript.FromMonoBehaviour(M); CombatAbilities = serializedObject.FindProperty("CombatAbilities"); InputWeapon = serializedObject.FindProperty("InputWeapon"); HitMask = serializedObject.FindProperty("HitMask"); Reload = serializedObject.FindProperty("Reload"); InputAttack1 = serializedObject.FindProperty("InputAttack1"); InputAttack2 = serializedObject.FindProperty("InputAttack2"); InputAim = serializedObject.FindProperty("InputAim"); HLeft = serializedObject.FindProperty("HLeft"); HRight = serializedObject.FindProperty("HRight"); HBack = serializedObject.FindProperty("HBack"); HolderLeft = serializedObject.FindProperty("HolderLeft"); HolderRight = serializedObject.FindProperty("HolderRight"); HolderBack = serializedObject.FindProperty("HolderBack"); debug = serializedObject.FindProperty("debug"); }
private void OnEnable() { M = (RiderCombat)target; script = MonoScript.FromMonoBehaviour(M); m_WeaponAim = serializedObject.FindProperty("m_WeaponAim"); m_WeaponType = serializedObject.FindProperty("m_WeaponType"); m_WeaponHold = serializedObject.FindProperty("m_WeaponHold"); m_WeaponHolder = serializedObject.FindProperty("m_WeaponHolder"); m_WeaponAction = serializedObject.FindProperty("m_WeaponAction"); ExitCombatOnDismount = serializedObject.FindProperty("ExitCombatOnDismount"); CloneAbilities = serializedObject.FindProperty("CloneAbilities"); CombatAbilities = serializedObject.FindProperty("CombatAbilities"); Editor_Tabs1 = serializedObject.FindProperty("Editor_Tabs1"); Editor_Tabs2 = serializedObject.FindProperty("Editor_Tabs2"); //HitMask = serializedObject.FindProperty("HitMask"); HolderLeft = serializedObject.FindProperty("HolderLeft"); HolderRight = serializedObject.FindProperty("HolderRight"); HolderBack = serializedObject.FindProperty("HolderBack"); LeftHandEquipPoint = serializedObject.FindProperty("LeftHandEquipPoint"); RightHandEquipPoint = serializedObject.FindProperty("RightHandEquipPoint"); OnCombatMode = serializedObject.FindProperty("OnCombatMode"); OnEquipWeapon = serializedObject.FindProperty("OnEquipWeapon"); OnUnequipWeapon = serializedObject.FindProperty("OnUnequipWeapon"); OnWeaponAction = serializedObject.FindProperty("OnWeaponAction"); OnAttack = serializedObject.FindProperty("OnAttack"); OnAimSide = serializedObject.FindProperty("OnAimSide"); OnAiming = serializedObject.FindProperty("OnAiming"); toggleAim = serializedObject.FindProperty("toggleAim"); //OnTarget = serializedObject.FindProperty("OnTarget"); CombatLayerPath = serializedObject.FindProperty("CombatLayerPath"); CombatLayerName = serializedObject.FindProperty("CombatLayerName"); //Target = serializedObject.FindProperty("Target"); // AimDot = serializedObject.FindProperty("AimDot"); StrafeOnTarget = serializedObject.FindProperty("StrafeOnTarget"); // MainCamera = serializedObject.FindProperty("MainCamera"); activeHolderSide = serializedObject.FindProperty("activeHolderSide"); UseInventory = serializedObject.FindProperty("UseInventory"); UseHolders = serializedObject.FindProperty("UseHolders"); AlreadyInstantiated = serializedObject.FindProperty("AlreadyInstantiated"); Active = serializedObject.FindProperty("active"); ForceNormalUpdate = serializedObject.FindProperty("ForceNormalUpdate"); ForceMountNormalUpdate = serializedObject.FindProperty("ForceMountNormalUpdate"); debug = serializedObject.FindProperty("debug"); }
/// <summary> /// Called on the Start of the Rider Combat Script /// </summary> public virtual void StartAbility(RiderCombat ridercombat) { RC = ridercombat; //Get the reference for the RiderCombat Script Camera camera = RC.rider.MainCamera; if (camera) { cam = camera.transform; //Get the camera from MainCamera } Anim = RC.Anim; }
public override void StartAbility(RiderCombat ridercombat) { base.StartAbility(ridercombat); DefaultInputType = RC.InputAttack1.GetPressed; //Get the original ButtonType for Automatic or One Shoot }
public override void StartAbility(RiderCombat ridercombat) { base.StartAbility(ridercombat); KnotToHand = false; }
public virtual void StartAbility(RiderCombat ridercombat) { RC = ridercombat; //Get the reference for the RiderCombat Script Anim = RC.Anim; }