59 lines
1.4 KiB
C#
59 lines
1.4 KiB
C#
![]() |
// ***********************************************************************
|
|||
|
// Assembly : Game
|
|||
|
// Author : Kimch
|
|||
|
// Created : 2019-05-21
|
|||
|
// Description :
|
|||
|
// Last Modified By :
|
|||
|
// Last Modified On :
|
|||
|
// ***********************************************************************
|
|||
|
// <copyright file= "EntityInfo" company="DefaultCompany"></copyright>
|
|||
|
// <summary></summary>
|
|||
|
// ***********************************************************************
|
|||
|
namespace G
|
|||
|
{
|
|||
|
using UnityEngine;
|
|||
|
//初始化一个所需数据
|
|||
|
public class EntityInfo
|
|||
|
{
|
|||
|
public int guid; //id
|
|||
|
public int itemId; //在表中的ID
|
|||
|
public string name; //名字
|
|||
|
|
|||
|
public float x; //坐标X
|
|||
|
public float y; //坐标Y
|
|||
|
public float z; //坐标Z
|
|||
|
//public float dir; //朝向
|
|||
|
//public float moveSpeed; //移动速度
|
|||
|
|
|||
|
public int level;
|
|||
|
//public int curHp;
|
|||
|
//public int maxHp;
|
|||
|
public float[] factorA;
|
|||
|
public float[] factorB;
|
|||
|
|
|||
|
public GameObject prefab;
|
|||
|
|
|||
|
public Vector3 position
|
|||
|
{
|
|||
|
get { return new Vector3(x, y, z); }
|
|||
|
set
|
|||
|
{
|
|||
|
x = value.x;
|
|||
|
y = value.y;
|
|||
|
z = value.z;
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
public void Clear()
|
|||
|
{
|
|||
|
x = 0.0f;
|
|||
|
y = 0.0f;
|
|||
|
z = 0.0f;
|
|||
|
//dir = 0.0f;
|
|||
|
|
|||
|
name = string.Empty;
|
|||
|
guid = GlobalDefine.INVALID_ID;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|