add ckg
plantilla base para movimiento básico
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UniversalAI;
|
||||
|
||||
public class GKCUniversalAIDamageDetectionInterface : healthManagement
|
||||
{
|
||||
public UniversalDamageable mainUniversalDamageable;
|
||||
|
||||
bool damageComponentLocated;
|
||||
|
||||
public override void setDamageWithHealthManagement(float damageAmount,
|
||||
Vector3 fromDirection, Vector3 damagePos, GameObject attacker, GameObject projectile,
|
||||
bool damageConstant,
|
||||
bool searchClosestWeakSpot, bool ignoreShield, bool
|
||||
ignoreDamageInScreen, bool damageCanBeBlocked, bool
|
||||
canActivateReactionSystemTemporally, int damageReactionID, int damageTypeID)
|
||||
{
|
||||
if (!damageComponentLocated)
|
||||
{
|
||||
mainUniversalDamageable = GetComponent<UniversalDamageable>();
|
||||
|
||||
damageComponentLocated = true;
|
||||
}
|
||||
|
||||
if (damageComponentLocated)
|
||||
{
|
||||
mainUniversalDamageable.TakeDamage((int)damageAmount);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 63dfdfd48db9a16498fae87e3745e043
|
||||
timeCreated: 1634660810
|
||||
licenseType: Store
|
||||
TextScriptImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 40995
|
||||
packageName: Game Kit Controller - Shooter Melee Adventure Creator 3D + 2.5D
|
||||
packageVersion: 3.77g
|
||||
assetPath: Assets/Game Kit Controller/Documentation/Integrations/Universal AI/GKCUniversalAIDamageDetectionInterface.txt
|
||||
uploadId: 814740
|
||||
Binary file not shown.
@@ -0,0 +1,16 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7b4399063fa890f4780ed885f5f889e4
|
||||
timeCreated: 1634661015
|
||||
licenseType: Store
|
||||
DefaultImporter:
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 40995
|
||||
packageName: Game Kit Controller - Shooter Melee Adventure Creator 3D + 2.5D
|
||||
packageVersion: 3.77g
|
||||
assetPath: Assets/Game Kit Controller/Documentation/Integrations/Universal AI/Universal
|
||||
AI System Integration GKC.pdf
|
||||
uploadId: 814740
|
||||
Reference in New Issue
Block a user