Esempio n. 1
0
 private void PlayerEntityModelBehavior_networkStarted(NetworkBehavior behavior)
 {
     PlayerEntity = behavior.GetComponent <PlayerEntity>();
     PlayerEntity.InitializePlayerEntity(this,
                                         CurrentUserInfo,
                                         CameraOnDestination);
 }
Esempio n. 2
0
        private void _thisTower_networkStarted(NetworkBehavior behavior)
        {
            //After that the tower is generated on the network, adjust it's position
            var _tower = behavior.GetComponent <TowerEntityController>();

            _tower.InitTowerEntityController(MAPTowerGPSCoords[_tower]);
        }
        //Once the avator object is created on the network, starts build it's avator character
        private void AvatorController_networkStarted(NetworkBehavior behavior)
        {
            //Sets up name and selected uma character
            var avatorController = behavior.GetComponent <AvatorController>();

            //Passes this destination controller in order to set up correctly the avator
            avatorController.InitAvatorController(this);
        }
 private void TowerComponents_networkStarted(NetworkBehavior behavior)
 {
     TowerCaptureController = behavior.GetComponent <TowerCaptureController>();
     TowerCaptureController.InitTowerCaptureController(this);
 }
 private void TowerNetUIController_networkStarted(NetworkBehavior behavior)
 {
     TowerUINetworkController = behavior.GetComponent <TowerUINetworkController>();
     TowerUINetworkController.InitializeTowerUINetworkController(this);
 }
Esempio n. 6
0
 private void GameUiNetworkController_networkStarted(NetworkBehavior behavior)
 {
     GameUINetworkController = behavior.GetComponent <GameUINetworkController>();
     GameUINetworkController.InitializeNetworkGameUI(AvatorControllerReference);
 }