public PlayerHealthController(PlayerController playerController, UnityPlayerData generalPlayerData) { health = maxHealth; this.playerController = playerController; this.generalPlayerData = generalPlayerData; UpdateVisuals(); }
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>(); }
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; }
public PlayerFactory(UnityPlayerData playerData, IDeviceInput deviceInput) { this.playerData = playerData; this.deviceInput = deviceInput; }