コード例 #1
0
 public PlayerHealthController(PlayerController playerController, UnityPlayerData generalPlayerData)
 {
     health = maxHealth;
     this.playerController  = playerController;
     this.generalPlayerData = generalPlayerData;
     UpdateVisuals();
 }
コード例 #2
0
 public PlayersWrapper(UnityPlayerData playerData, IDeviceInput deviceInput)
 {
     idToPlayerController    = new Dictionary <int, PlayerController>();
     ownerToPlayerController = new Dictionary <int, PlayerController>();
     playerFactory           = new PlayerFactory(playerData, deviceInput);
     this.playerData         = playerData;
     onlinePlayers           = new List <PlayerController>();
 }
コード例 #3
0
 public PlayerController(GameObject playerGmj, Message_ServerCommand_CreateGameObject info, UnityPlayerData generalPlayerData, IDeviceInput deviceInput)
 {
     alive = true;
     playerScoreController  = new PlayerScoreController();
     spellCaster            = new SpellCasterController(this);
     playerAnimator         = new PlayerAnimatorController(playerGmj);
     healthController       = new PlayerHealthController(this, generalPlayerData);
     this.playerGmj         = playerGmj;
     this.generalPlayerData = generalPlayerData;
     PlayerControllerGUID   = info.GmjGUID;
     OwnerID = info.OwnerGUID;
     playerGmj.transform.position = new Vector3(info.transform.xPos, StaticVariables.GetYPos(), info.transform.zPos);
     targetPos        = playerGmj.transform.position;
     this.deviceInput = deviceInput;
 }
コード例 #4
0
 public PlayerFactory(UnityPlayerData playerData, IDeviceInput deviceInput)
 {
     this.playerData  = playerData;
     this.deviceInput = deviceInput;
 }