protected ArrayList objects = null; // objects static public bool CreateSynchFactory() { if (_Instance == null) { _Instance = new SynchFactory(); if (_Instance != null) { return(true); } } return(false); }
public NetLayer(GameLevel _curLevel, Heli.Helicopter h) { //HeliSynchStru update = new HeliSynchStru(); //Type tt = update.GetType(); //FieldInfo [] ff = tt.GetFields(); //foreach( FieldInfo f in ff ) //{ // f.SetValue(update, new Vector3(1,2,3)); //} curLevel = _curLevel; heli = h; // // TODO: Add constructor logic here // SynchFactory.CreateSynchFactory(); factory = SynchFactory.Instance; }