예제 #1
0
 public UnitFsm(UnitView unit)
 {
     idle    = new IdleState(unit);
     move    = new MoveState(unit);
     attack  = new AttackState(unit);
     current = idle;
 }
 public UnitViewFactory(Dictionary <string, UnitInfo> unitInfos, UnitView unitPrefab,
                        CoordFinder coordFinder, Camera mainCamera)
 {
     this.unitInfos   = unitInfos;
     this.unitPrefab  = unitPrefab;
     this.coordFinder = coordFinder;
     this.mainCamera  = mainCamera;
 }