コード例 #1
0
 public PlayerRecord(int id, bool isEnemy, bool isNewPlayer, int locX, int locY, int characterId, int levelId, EnemyAIType aiType, int searchRange)
 {
     this.id          = id;
     this.isEnemy     = isEnemy;
     this.isNewPlayer = isNewPlayer;
     this.locX        = locX;
     this.locY        = locY;
     this.characterId = characterId;
     this.levelId     = levelId;
     this.aiType      = aiType;
     this.searchRange = searchRange;
 }
コード例 #2
0
 public PlayerRecord(int id, bool isEnemy, bool isNewPlayer, int locX, int locY, int characterId, int levelId, uint level, uint exp, uint hp, uint currentHp, uint atk, uint def, uint wis, uint dex, uint mdef, int equipWeapon, EnemyAIType aiType, int searchRange, bool isActable = true)
 {
     this.id          = id;
     this.isEnemy     = isEnemy;
     this.isNewPlayer = isNewPlayer;
     this.locX        = locX;
     this.locY        = locY;
     this.characterId = characterId;
     this.levelId     = levelId;
     this.level       = level;
     this.exp         = exp;
     this.hp          = hp;
     this.currentHp   = currentHp;
     this.atk         = atk;
     this.def         = def;
     this.wis         = wis;
     this.dex         = dex;
     this.mdef        = mdef;
     this.equipWeapon = equipWeapon;
     this.aiType      = aiType;
     this.searchRange = searchRange;
     this.isActable   = isActable;
 }
コード例 #3
0
 private void Start()
 {
     typeDefinition = GetComponent <Enemy>().TypeDefinition.aiType;
     thePlayer      = GameObject.FindWithTag("Player");
 }