public static void EnterGame() { var go = Instantiate(Resources.Load <GameObject>("Prefabs/mon_goblinWizard")); go.transform.position = new Vector3(Random.Range(-5f, 5f), 0.1f, Random.Range(-5f, 5f)); go.transform.eulerAngles = new Vector3(0, Random.Range(0, 360), 0); go.AddComponent <SelfActor>(); Proto.CallEnter(go.transform.position, go.transform.localEulerAngles.y); }