更改文件架构
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
namespace BITKit.Entities
|
||||
{
|
||||
public class EntityImpact : EntityComponent, IPhysicsImpact
|
||||
{
|
||||
public void AddImpact(Vector3 force)
|
||||
{
|
||||
var damage = (int)(-force.sqrMagnitude);
|
||||
entity.Invoke<int>("AddHP", damage);
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8b0de804778e2b44f89439d8721623e1
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Reference in New Issue
Block a user