void Start() { var socketIO = GameObject.Find("SocketIO"); if (socketIO == null) { Debug.LogError("Could not find SocketIO object. Make sure you run the game from the 'Initialization' scene!!!"); return; } network = socketIO.GetComponent <NetworkManager>(); if (network == null) { Debug.LogError("Could not find NetworkManager component. Make sure you run the game from the 'Initialization' scene!!!"); return; } // Initial Items network.AddStoreItem("screen-shake", "Screen Shake", 300); network.AddStoreItem("flicker", "Flicker", 500); network.AddStoreItem("noise", "Noise", 500); network.AddStoreItem("vertical-flip", "Vertical Flip", 600); network.AddStoreItem("horizontal-flip", "Horizontal Flip", 600); network.ItemBought += OnItemBought; network.StartGame(); }