Exemple #1
0
    private void Start()
    {
        _mainHeroController  = GetComponent <MainHeroController>();
        _mainHeroRigidbody2D = _mainHeroController.HeroRigidbody2D;
        _animator            = GetComponent <Animator>();

        var heroName = _mainHeroController.name;

        if (isOffline)
        {
            return;
        }

        StartClient();

        SendClientPlayerJoinMessage(heroName);

        /*
         * map sync logic
         */

        // 0.03333333333f
        // 10.0f

        InvokeRepeating("DoMultiplayerMovementLogic", 0.0f, 0.03333333333f);
    }
Exemple #2
0
 public MainHeroBlockFinder(MainHeroController controller)
 {
     m_controller = controller;
 }