Since I want to export an alpha demo of my game to webplayer (and exe), I was expecting it -besides load/save functionality- to create the same results as when playing inside the Editor.
public List<GameObject> getTargetsInRange(int x, int y, float range){
List<GameObject> ret = new List<GameObject>();
List<ArenaField> fr = getFieldsInRange(fields[x,y],range);
string strong = "";
foreach(ArenaField v in fr){
strong += " " + v.mainActorOnField + " ";
if(v.mainActorOnField != null) ret.Add(v.mainActorOnField);
}
outputToDebug("Fields in Range: " + fr.Count + " strong: " + strong);
return ret;
}
where mainActorOnField is of type GameObject. Now, regularly (and this has never been different until now) I expect 6 fields in range with 2 actors and 4 nulls, so the string strong I expect is
Fields in Range: 6 strong: null Player (UnityEngine.GameObject) null null null Opponent (UnityEngine.GameObject)
but what I get when using the WebPlayer is
Fields in Range: 6 strong: Player (UnityEngine.GameObject)
what??? First: why doesn’t it list “null” strings ? And where is my Opponent GO??? It is not recognized as not being null?
Guys help ![]()
Oh by the way, same occurs when exporting to exe 64bit.