public override void Attached() { base.Attached(); serverStarted = false; gameUnit = GetComponent <GameUnit>(); gameUnit.gameUnitState = entity.GetState <IGameUnitState>(); //Debug.Log(this + " Attached"); if (BoltNetwork.isServer) { gameUnit.ServerInit(); } else { gameUnit.ClientInit(); } gameUnit.ServerAndClientInit(); }