Ejemplo n.º 1
0
            private static Signage Spawn(Vector3 position)
            {
                Signage signage = GameManager.server.CreateEntity(SIGN_PREFAB, position) as Signage;

                signage.enableSaving = false;
                signage.Spawn();

                Destroy(signage.GetComponent <MeshCollider>());
                Destroy(signage.GetComponent <DestroyOnGroundMissing>());
                Destroy(signage.GetComponent <GroundWatch>());

                return(signage);
            }