예제 #1
0
파일: NPCBrain.cs 프로젝트: magweng/imt3601
 public State(NPCBrain x)
 {
     this._worldGrid = x._worldGrid; _npc = x.npc; this._brain = x;
 }
예제 #2
0
파일: NPCBrain.cs 프로젝트: magweng/imt3601
 public AvoidObstacle(NPCBrain x) : base(x)
 {
     this._goal = Vector3.down;
     this._path = new Stack <WorldGrid.Cell>();
     AStar(this._npc.getCellNoWater(), findTargetCell(x.npc.getDir()));
 }
예제 #3
0
파일: NPCBrain.cs 프로젝트: magweng/imt3601
 public FleeDanger(NPCBrain x) : base(x)
 {
     x._speed = 4;
 }
예제 #4
0
파일: NPCBrain.cs 프로젝트: magweng/imt3601
 public Roam(NPCBrain x) : base(x)
 {
     lastCell = new Vector3(-1000, -1000, -1000);
 }