public Arena(ref Hashtable map) { //Get the hashed pictureboxes by reference obj_map = new GameObject[Arena.size, Arena.size]; this.map = map; Arena.arena = this; for(int i=0; i< Arena.size; i++) { for(int j=0; j< Arena.size; j++) { obj_map[i,j] = new Floor(i,j); } } }
public static void AddGameObjectRef(int x_cordinate, int y_cordinate,ref GameObject obj) { obj_map[y_cordinate, x_cordinate] = obj; }
public static void AddGameObject(int x_cordinate, int y_cordinate, GameObject obj) { //Adding game objects to the arena obj_map[y_cordinate, x_cordinate] = obj; }