示例#1
0
 public static GAstarComponent Make(int entityID)
 {
     GAstarComponent comp = new GAstarComponent();
     comp.EntityID = entityID;
     comp._goal = new Vector2(36f, 2.5f); 
     comp._active = true;
     comp.FamilyID = 6;
     comp._index = 0;
     comp._path = new Dictionary<Vector3, bool>();
     return comp;
 }
示例#2
0
        public static GAstarComponent Make(int entityID)
        {
            GAstarComponent comp = new GAstarComponent();

            comp.EntityID = entityID;
            comp._goal    = new Vector2(36f, 2.5f);
            comp._active  = true;
            comp.FamilyID = 6;
            comp._index   = 0;
            comp._path    = new Dictionary <Vector3, bool>();
            return(comp);
        }