FixGameStateCommit
This commit is contained in:
parent
29a7648e5b
commit
a0208805ed
1 changed files with 4 additions and 1 deletions
|
@ -43,7 +43,10 @@ public abstract class GameObject
|
|||
|
||||
public void Instantiate(GameObject gameObject)
|
||||
{
|
||||
AppManager.Instance.server.RegisterGameObject(gameObject);
|
||||
if (AppManager.Instance.gamestate == GameState.HostPlaying)
|
||||
{
|
||||
AppManager.Instance.server.RegisterGameObject(gameObject);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue