Start() публичный Метод

public Start ( ) : void
Результат void
Пример #1
0
        public override void ExtraSetup()
        {
            bundle = AssetBundle.LoadFromFile("Assets/Tests/Runtime/TestScene/testscene");

            spawner = networkManagerGo.AddComponent <CharacterSpawner>();

            spawner.Client              = client;
            spawner.Server              = server;
            spawner.SceneManager        = sceneManager;
            spawner.ClientObjectManager = clientObjectManager;
            spawner.ServerObjectManager = serverObjectManager;

            player = new GameObject();
            NetworkIdentity identity = player.AddComponent <NetworkIdentity>();

            spawner.PlayerPrefab = identity;

            spawner.AutoSpawn = false;

            spawner.Start();
        }