Example #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;
 }
Example #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);
        }