Пример #1
0
    void Awake()
    {
        config.Load();

        if (networkView == null)
        {
            gameObject.AddComponent <NetworkView>();
        }
        networkView.stateSynchronization = NetworkStateSynchronization.Off;
        networkView.observed             = null;

        option     = ComponentHelper.AddComponentIfNotExists <OptionManager>(gameObject);
        sound      = ComponentHelper.AddComponentIfNotExists <SoundManager>(gameObject);
        server     = ComponentHelper.AddComponentIfNotExists <ServerManager>(gameObject);
        player     = ComponentHelper.AddComponentIfNotExists <PlayerManager>(gameObject);
        ready      = ComponentHelper.AddComponentIfNotExists <ReadyManager>(gameObject);
        transition = ComponentHelper.AddComponentIfNotExists <TransitionManager>(gameObject);
    }