public IEnumerator GetDiceRollResult() { string _uuid; if (PlayerPrefs.HasKey ("uuid")) { _uuid = PlayerPrefs.GetString ("uuid"); } else { yield break; } string url = ConfURL.HOST_NAME+ConfURL.PLAYER_BASE_MAKE; WWWForm form = new WWWForm (); form.AddField ("UUID", _uuid); form.AddField ("JobID", SelectJob); WWW www = new WWW(url, form); yield return www; if (www.error != null) { Debug.Log ("error"); } else { Debug.Log ("success"); Debug.Log (www.text); var charaAPI = JsonUtility.FromJson<RollResult>(www.text); baseStatus = charaAPI.BaseStatus; status = charaAPI.Status; InputBaseStatus(baseStatus); InputStatus(status); submitBtn.gameObject.SetActive (true); } }
void Start() { _status = GetComponent<PlayerStatus>(); _sceneConfiguration = FindObjectOfType<SceneConfiguration>(); _playerModel = GameObject.FindGameObjectWithTag("PlayerModel"); _levelEnd = GameObject.FindGameObjectWithTag("levelEnd"); }
public void Trigger() { anim.SetTrigger("Start"); anim.speed = 1 / START_DURATION; playerStatus = PlayerStatus.STARTING; startTime = START_DURATION; }
public void Awake() { if (!target) return; // obtain entity state data entityState = target.GetComponent<EntityStateData>(); // Obtain entity state if (!entityState) Debug.LogError("No EntitySataeData has been assigned to " + target.name); // obtain transform of this entity eTransform = this.transform; noiseDetectionCtrl = GameObject.FindGameObjectWithTag("Player").GetComponent<NoiseLevelCtrl>(); curPlayerStatus = PlayerStatus.Undetected; if (target == null) { if (EditorUtility.DisplayDialog("FOV_Ctrl: Detection Target not assigned!", "Assign the object with tag 'Player' by default?", "Assign", "Cancel")) { target = GameObject.FindGameObjectWithTag("Player"); } else { // target not assigned } } else // assign target Transform tTransform = target.transform; }
public void trigger() { apple.Drop(); this.transform.parent.GetComponent<ApplePuzzle> ().dropSound.Play (); this.playerStatus = PlayerStatus.WAITING; anim.SetTrigger("Release"); }
public void Primed() { anim.speed = 1; playerStatus = PlayerStatus.PRIMED; anim.SetTrigger("Prime"); primeTime = PRIME_DURATION; }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.scMapCtrl = new StarCraftBot9KClient.Controls.StarCraftMap(); this.playerStatusCtrl = new StarCraftBot9KClient.Controls.PlayerStatus(); this.SuspendLayout(); // // scMapCtrl // this.scMapCtrl.Dock = System.Windows.Forms.DockStyle.Fill; this.scMapCtrl.Location = new System.Drawing.Point(0, 26); this.scMapCtrl.Map = null; this.scMapCtrl.Name = "scMapCtrl"; this.scMapCtrl.Size = new System.Drawing.Size(254, 173); this.scMapCtrl.TabIndex = 0; // // playerStatusCtrl // this.playerStatusCtrl.BackColor = System.Drawing.SystemColors.ControlDarkDark; this.playerStatusCtrl.Dock = System.Windows.Forms.DockStyle.Top; this.playerStatusCtrl.Location = new System.Drawing.Point(0, 0); this.playerStatusCtrl.Name = "playerStatusCtrl"; this.playerStatusCtrl.Size = new System.Drawing.Size(254, 26); this.playerStatusCtrl.TabIndex = 0; // // GameState // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.SystemColors.ControlDarkDark; this.Controls.Add(this.scMapCtrl); this.Controls.Add(this.playerStatusCtrl); this.Name = "GameState"; this.Size = new System.Drawing.Size(254, 199); this.ResumeLayout(false); }
public void Penalize() { playerStatus = PlayerStatus.PENALIZED; this.transform.parent.GetComponent<KissPuzzle> ().kissFailSound.Play (); anim.SetTrigger("Penalize"); penaltyTimer = PENALTY_DURATION; }
void Awake(){ _instance = this; headSprite = transform.Find ("HeadSprite").GetComponent<UISprite> (); levelLabel = transform.Find ("LevelLabel").GetComponent<UILabel> (); nameLabel = transform.Find ("NameLabel").GetComponent<UILabel> (); diamondLabel = transform.Find ("DiamondLabel/DiamondNumLabel").GetComponent<UILabel> (); coinLabel = transform.Find ("CoinLabel/CoinNumLabel").GetComponent<UILabel> (); tween = this.GetComponent<TweenPosition> (); closeButton = transform.Find ("CancelButton").GetComponent<UIButton> (); changeNameButton = transform.Find ("ChangeNameButton").GetComponent<UIButton> (); changeNameGo = transform.Find ("ChangeNameBg").gameObject; nameInput = transform.Find ("ChangeNameBg/NameInput").GetComponent<UIInput> (); sureButton = transform.Find ("ChangeNameBg/SureButton").GetComponent<UIButton> (); cancelButton = transform.Find ("ChangeNameBg/CancelButton").GetComponent<UIButton> (); changeNameGo.SetActive (false); EventDelegate ed = new EventDelegate(this,"OnButtonCloseClick"); closeButton.onClick.Add (ed); EventDelegate ed2 = new EventDelegate (this, "OnButtonChangeNameClick"); changeNameButton.onClick.Add (ed2); EventDelegate ed3 = new EventDelegate (this, "OnButtonSureClick"); sureButton.onClick.Add (ed3); EventDelegate ed4 = new EventDelegate (this, "OnButtonCancelClick"); cancelButton.onClick.Add (ed4); PlayerInfo._instance.OnPlayerInfoChanged += this.OnPlayerInfoChanged; }
public Player(TcpClient client, Team equipa) { this.client = client; this.equipa = equipa; this.playerStatus = PlayerStatus.Waiting; this.MsgCounter = 0; }
void Awake() { playerStatusScript = GetComponent<PlayerStatus> (); iconBoxScript = GameObject.FindGameObjectWithTag ("IconBox").GetComponent<IconBox> (); colorNormal = new Color (1, 1f, 1f); colorBonus = new Color (0f/255f, 172f/255f, 255f/255f); }
// Use this for initialization void Start () { playerStatus = GetComponent<PlayerStatus>(); playerStatus.player = this; hasMissed = false; //missedTimer = musicCore.tempoInterval; gameLoop = GameObject.Find("GameLogic").GetComponent<GameLoop>(); }
// Use this for initialization void Start () { playerStatus = GameObject.FindGameObjectWithTag ("GameController").GetComponent<PlayerStatus> (); //set up inventory text position for (int i = 0; i < 4; i++) { textShadows [i].transform.position = new Vector3 ( Screen.width * 0.1f + i * Screen.width * 0.12f, Screen.height * 0.96f, 0f); runeCounts [i] = textShadows [i].GetComponentInChildren<Text> (); runeCounts [i].transform.position = textShadows [i].transform.position + new Vector3 (0, -10, 0); dayText.text = "Day " + playerStatus.day; } //set up day text dayText.transform.position = new Vector3 ( Screen.width * 0.675f, Screen.height * 0.91f, 0f); //set up energy text energyText.transform.position = new Vector3 ( Screen.width * 0.925f, Screen.height * 0.91f, 0f); }
public void Load() { GUIPanel.Pannels.Clear(); InventoryWindow = new InventoryScreen(); InventoryWindow.Init(); SkillScreen = new CharcterScreen(); SkillScreen.Init(); StatusWindow = new PlayerStatus(); StatusWindow.Init(); Selector = new TargetSelection(); Selector.Init(); Selector.Enabled = false; Loot = new LootScreen(); Loot.Init(); Loot.Enabled = false; GameMenu = new InGameMenu(); GameMenu.Init(); GameMenu.Enabled = false; InMenu = false; SetPlayer(GameState.Instance.PlayerObject); }
public override void PowerActionEnter(GameObject player, Controller2D controller) { applyDmg = controller.GetComponent<PlayerStatus>(); if (trapDuration > slowDuration) { if (!used) { used = true; player.rigidbody2D.drag = 0; applyDmg.Frozen(); frozenEffect = (GameObject)Instantiate(Resources.Load("FrozenEffect"), player.transform.position, Quaternion.identity); frozenEffect.GetComponent<FrozenEffect>().player = controller; frozenplayer = controller; currentplayer = player; networkView.RPC("FreezeFollow", RPCMode.Others, Network.player); if(Analytics.Enabled){ GA.API.Design.NewEvent("Times Frozen", player.transform.position); } } } else { player.rigidbody2D.drag = 100f; } }
public void determineIfPenalized() { if (playerStatus != PlayerStatus.SUCCESS) { playerStatus = PlayerStatus.PENALIZED; } }
public BlackjackPlayer(GamePeer peer, PlayerInfo info) : base(peer, info) { money = info.game_money; win = 0; lose = 0; status = PlayerStatus.Waiting; }
// Use this for initialization void Start() { score = FindObjectOfType<Score>(); playerStatus = FindObjectOfType<PlayerStatus>(); anim = GetComponent<Animator> (); testPlaerAttack =playerStatus.playerPower; }
public void OnPlayerLeft(PlayerDevice playerDevice) { if (playerDevice.id == SlotNumber) { _playerDevice = null; Status = PlayerStatus.Disconnected; } }
public void OnPlayerJoined(PlayerDevice playerDevice) { if (playerDevice.id == SlotNumber) { _playerDevice = playerDevice; Status = PlayerStatus.Connected; } }
public GameInfoPacket(byte[] binaryGameInfoPacket) { int pos = 2; packetIdField = new PacketIdCounter(BitConverter.ToUInt16(binaryGameInfoPacket,pos)); pos += 2; timestampField=DateTime.FromBinary(BitConverter.ToInt64(binaryGameInfoPacket,pos)); pos += 8; gameIdField = BitConverter.ToUInt16(binaryGameInfoPacket, pos); pos += 2; playerStatusListField = new List<PlayerStatus>(); int playerCount = (int)BitConverter.ToUInt16(binaryGameInfoPacket, pos); pos += 2; for (int i = 0; i < playerCount; i++) { int psLength = (int)BitConverter.ToUInt16(binaryGameInfoPacket, pos); pos += 2; PlayerStatus ps = new PlayerStatus(binaryGameInfoPacket, pos); pos += psLength; playerStatusListField.Add(ps); } int teamScoreCount = (int)BitConverter.ToUInt16(binaryGameInfoPacket, pos); pos += 2; teamScoreListField = new List<TeamData>(); for (int i = 0; i < teamScoreCount; i++) { TeamData ts = new TeamData(); ts.TeamId = BitConverter.ToUInt16(binaryGameInfoPacket, pos); pos += 2; ts.TeamScore = BitConverter.ToUInt16(binaryGameInfoPacket, pos); pos += 2; int count = (int)BitConverter.ToUInt16(binaryGameInfoPacket, pos); pos += 2; ts.TeamName = Encoding.UTF8.GetString(binaryGameInfoPacket, pos, count); pos += count; teamScoreListField.Add(ts); } this.gameTypeField = (Constants.GameTypeEnumeration)BitConverter.ToUInt16(binaryGameInfoPacket, pos); pos += 2; this.limitField = BitConverter.ToUInt16(binaryGameInfoPacket, pos); pos += 2; int addressLength = (int)BitConverter.ToUInt16(binaryGameInfoPacket, pos); pos += 2; string address = Encoding.UTF8.GetString(binaryGameInfoPacket, pos, addressLength); pos += addressLength; int port = BitConverter.ToInt32(binaryGameInfoPacket, pos); pos += 4; serverAddressField = new IPEndPoint(IPAddress.Parse(address), port); roundNumberField = BitConverter.ToUInt16(binaryGameInfoPacket, pos); }
// Use this for initialization void Awake() { status = PlayerStatus.IDLE; animator = GetComponent<Animator>(); rb = GetComponent<Rigidbody2D>(); walkSound = transform.FindChild("Player Walk Sound").GetComponent<AudioSource>(); runSound = transform.FindChild("Player Run Sound").GetComponent<AudioSource>(); }
// Use this for initialization void Start () { UpBodyTrans = character.transform.Find("UpBody"); DownColliderTrans = character.transform.Find("DownCollider"); playerStatus = PlayerStatus.InAir; Distance = 1000; characterManager = character.GetComponent<CharacterManager>(); characterManager.localEventManager.ChangeToAirEvent+= delegate {playerStatus = PlayerStatus.InAir;}; characterManager.localEventManager.ChangeToGroundEvent+= delegate {playerStatus = PlayerStatus.OnGround;}; }
void Awake(){ walk = this.GetComponent<PlayerWalk> (); ps = this.GetComponent<PlayerStatus> (); hudtextFollow = transform.Find ("HUDText").gameObject; foreach (GameObject go in efxArray) { efxDict.Add(go.name,go); } }
/// <summary> /// アリーナのコメントサーバー情報を取得します。 /// </summary> public CommentRoomInfo GetArenaInfo(PlayerStatus playerStatus) { var arenaName = playerStatus.Stream.DefaultCommunity; var roomLabel = playerStatus.User.RoomLabel; var ms = playerStatus.MS; var offset = 0; if (playerStatus.Stream.ProviderType != ProviderType.Community) { throw new NicoLiveException( "ユーザー生放送以外には対応していません。"); } // メッセージサーバーのURLから番号を取得します。 var msAddrNum = NicoString.GetMessageServerNumber(ms.Address); if (msAddrNum < 0) { return new CommentRoomInfo( roomLabel, ms.Address, ms.Port, ms.Thread); } // アリーナ席へのオフセットを取得します。 if (roomLabel.IndexOf("A") >= 0) { offset = 1; } else if (roomLabel.IndexOf("B") >= 0) { offset = 2; } else if (roomLabel.IndexOf("C") >= 0) { offset = 3; } else { offset = 0; } var carry = 0; var msPort = CommentServerPort(ms.Port - offset, out carry); var msAddr = CommentServerAddress(msAddrNum + carry); // サーバーアドレス番号はポート番号のオーバーフローによって // 上下します。 // - ポート番号が2805以下なら、アドレス番号は1下がる // - ポート番号が2814以上なら、アドレス番号は1上がる return new CommentRoomInfo( arenaName, msAddr, msPort, ms.Thread - offset); }
void Start(){ // HUDGo = GameObject.Instantiate (HUDtextprefab, Vector3.zero, Quaternion.identity) as GameObject; HUDGo = NGUITools.AddChild (HUDParent._instance.gameObject, HUDtextprefab) ;//预设物体 hudtext = HUDGo.GetComponent<HUDText> (); followTarget = HUDGo.GetComponent<UIFollowTarget> (); followTarget.target = HUDFollow.transform; followTarget.gameCamera = Camera.main; // followTarget.uiCamera = UICamera.current.GetComponent<Camera> (); psxu = GameObject.FindGameObjectWithTag (Tags.player).GetComponent<PlayerStatus> (); }
void FreezeFollow(NetworkPlayer player){ GameObject playerObject = SessionManager.Instance.psInfo.GetPlayerGameObject (player); var tempfreeze = (GameObject)Instantiate(frozenEffectPrefab ,playerObject.transform.position, Quaternion.identity); var playercontroller = playerObject.GetComponent<Controller2D>(); applyDmg = playercontroller.GetComponent<PlayerStatus> (); applyDmg.Frozen(); tempfreeze.GetComponent<FrozenEffect>().player = playercontroller; print (tempfreeze.GetComponent<FrozenEffect>().player); }
void Start() { // Obtains the components from the PlayerStatus Script. player = FindObjectOfType<PlayerStatus>(); // In case the mainCamera prefab cannot be found. if (cameraShake == null) { // Alert Unity that cameraShake isn't possible at this moment. Debug.LogError("No camera shake referenced in GameMaster."); } }
void Update() { if (apple.decaying) { playerStatus = PlayerStatus.PRIMED; } if (apple.decayTime < 0) { playerStatus = PlayerStatus.FAILED; } }
public void InputStatus(PlayerStatus status) { Hp.text = status.HP.ToString(); Mp.text = status.MP.ToString(); Sanity.text = status.Sanity.ToString(); Luck.text = status.Luck.ToString(); Knowledge.text = status.Knowledge.ToString(); Idea.text = status.Idea.ToString(); JobSkillPoint.text = status.JobSkillPoint.ToString(); HobbySkillPoint.text = status.HobbySkillPoint.ToString(); DamageBonus.text = status.DamageBonus.ToString(); }
public PlayerStatusUpdateRequestMessage(PlayerStatus status) { this.status = status; }
void Awake() { anim = GetComponent <Animator>(); act = ACT.IDLE; Status = new PlayerStatus(); }
public void InitializeState(FightStatus fightStatus, CharacterStatus characterStatus, PlayerStatus ownerStatus) { if (fightStatus.currentTurnPlayerId != ownerStatus.id) { SetState(State.NotPlayable); } else { SetState(characterStatus.actionUsed ? State.ActionUsed : State.ActionAvailable); } }
public void UpdateState_Map() { playerCurrentState = PlayerStatus.Map; }
public void UpdateState_GolfFree() { playerCurrentState = PlayerStatus.GolfFree; //playerControll_Script.GolfFreeState(); }
public void UpdateState_Vanilla() { playerCurrentState = PlayerStatus.Vanilla; playerControll_Script.resetCharacterToVanilla(); //playerControll_Script.VanillaState(); }
public void SetPlayerStatusReference(PlayerStatus psr) { this.playerStatusReference = psr; }
public void RequestSendPlayerStatusData(PlayerStatus ps) { _Packet.RequestSendPlayerStatus(ps); }
void LoadData() { playerStatus = Hero[indexHero].GetComponent <PlayerStatus>(); playerStatus.playerName = PlayerPrefs.GetString("pName"); }
public void AddReserveEvent(PlayerStatus status, int valueBefore) { (EnQueueVisibleElement(HistoryElementType.Reserve) as HistoryReserveElement).Set(status, valueBefore); }
public override void HandleInput(PlayerInput input, PlayerStatus status) { if (status.WasDead()) { status.SetState(this); return; } if (status.previousState == PlayerStatus.fall && input.newInput.GetJumpButtonHeld() == true) { status.jumpAvailable = false; } else if (status.jumpAvailable == false && input.newInput.GetJumpButtonHeld() == false) { status.jumpAvailable = true; } if (input.newInput.GetVerticalInput() != 0 && status.climbLadderAvailable == true) { status.SetState(PlayerStatus.climb); return; } if (input.newInput.GetDashButtonDown() == true || input.newInput.GetHorizontalDoubleTap() == true) { status.SetState(PlayerStatus.dash); return; } if (input.newInput.GetAttackButtonDown() == true) { status.SetState(PlayerStatus.attack); return; } if (input.newInput.GetCastButtonDown() == true && status.ConsumeStamina(1) == true) { status.SetState(PlayerStatus.cast); return; } if (input.newInput.GetDefenseButtonDown() == true || input.newInput.GetDefenseButtonHeld() == true) { status.SetState(PlayerStatus.defense); return; } if (status.jumpAvailable == true && (input.newInput.GetJumpButtonDown() == true || input.newInput.GetJumpButtonHeld() == true)) { //if (input.newInput.GetVerticalInput() < 0 && status.GetComponent<PlayerCollider>().PlayerAboveCloudPlatform() == true) //{ // status.SetState(PlayerStatus.fallcloud); // return; //} //else //{ status.SetState(PlayerStatus.jump); return; //} } if (input.newInput.GetContextButtonDown() == true && status.ConsumeBeer(1) == true) { status.SetState(PlayerStatus.drink); return; } if (input.newInput.GetHorizontalInput() != 0) { status.SetState(PlayerStatus.walk); return; } if (input.newInput.GetTauntButtonDown() == true) { status.SetState(PlayerStatus.taunt); return; } status.SetState(this); }
// Use this for initialization void Start() { gm = GameObject.Find("GameManager"); ps = gm.GetComponent(typeof(PlayerStatus)) as PlayerStatus; }
internal static void SetPlayerStatus(PlayerStatus status) { playerStatus = status; }
private static void IncomingPackets_LongStatusEvent(int client, int serial, PlayerStatus playerStatus) { ClientInfo ci; if (ClientInfoCollection.GetClient(client, out ci)) { PlayerMobile p = ci.Player; if (p == null || p.Serial != serial) { return; } if (p.Name != playerStatus.Name) { p.Name = playerStatus.Name; } switch (playerStatus.Features) { case 3: p.Health = playerStatus.Health; p.MaxHealth = playerStatus.MaxHealth; p.Sex = playerStatus.Sex; p.Str = playerStatus.Str; p.Dex = playerStatus.Dex; p.Int = playerStatus.Int; p.Stamina = playerStatus.Stamina; p.MaxStamina = playerStatus.MaxStamina; p.Mana = playerStatus.Mana; p.MaxMana = playerStatus.MaxMana; p.Gold = playerStatus.Gold; p.PhysicalResist = playerStatus.PhysicalResist; p.Weight = playerStatus.Weight; p.StatCap = playerStatus.StatCap; p.Followers = playerStatus.Followers; p.MaxFollowers = playerStatus.MaxFollowers; break; case 4: p.Health = playerStatus.Health; p.MaxHealth = playerStatus.MaxHealth; p.Sex = playerStatus.Sex; p.Str = playerStatus.Str; p.Dex = playerStatus.Dex; p.Int = playerStatus.Int; p.Stamina = playerStatus.Stamina; p.MaxStamina = playerStatus.MaxStamina; p.Mana = playerStatus.Mana; p.MaxMana = playerStatus.MaxMana; p.Gold = playerStatus.Gold; p.PhysicalResist = playerStatus.PhysicalResist; p.Weight = playerStatus.Weight; p.StatCap = playerStatus.StatCap; p.Followers = playerStatus.Followers; p.MaxFollowers = playerStatus.MaxFollowers; p.FireResist = playerStatus.FireResist; p.ColdResist = playerStatus.ColdResist; p.PoisonResist = playerStatus.PoisonResist; p.EnergyResist = playerStatus.EnergyResist; p.Luck = playerStatus.Luck; p.MinDamage = playerStatus.MinDamage; p.MaxDamage = playerStatus.MaxDamage; p.TithingPoints = playerStatus.TithingPoints; break; case 5: p.Health = playerStatus.Health; p.MaxHealth = playerStatus.MaxHealth; p.Sex = playerStatus.Sex; p.Str = playerStatus.Str; p.Dex = playerStatus.Dex; p.Int = playerStatus.Int; p.Stamina = playerStatus.Stamina; p.MaxStamina = playerStatus.MaxStamina; p.Mana = playerStatus.Mana; p.MaxMana = playerStatus.MaxMana; p.Gold = playerStatus.Gold; p.PhysicalResist = playerStatus.PhysicalResist; p.Weight = playerStatus.Weight; p.MaxWeight = playerStatus.MaxWeight; p.Race = playerStatus.Race; p.StatCap = playerStatus.StatCap; p.Followers = playerStatus.Followers; p.MaxFollowers = playerStatus.MaxFollowers; p.FireResist = playerStatus.FireResist; p.ColdResist = playerStatus.ColdResist; p.PoisonResist = playerStatus.PoisonResist; p.EnergyResist = playerStatus.EnergyResist; p.Luck = playerStatus.Luck; p.MinDamage = playerStatus.MinDamage; p.MaxDamage = playerStatus.MaxDamage; p.TithingPoints = playerStatus.TithingPoints; break; case 6: p.Health = playerStatus.Health; p.MaxHealth = playerStatus.MaxHealth; p.Sex = playerStatus.Sex; p.Str = playerStatus.Str; p.Dex = playerStatus.Dex; p.Int = playerStatus.Int; p.Stamina = playerStatus.Stamina; p.MaxStamina = playerStatus.MaxStamina; p.Mana = playerStatus.Mana; p.MaxMana = playerStatus.MaxMana; p.Gold = playerStatus.Gold; p.PhysicalResist = playerStatus.PhysicalResist; p.Weight = playerStatus.Weight; p.MaxWeight = playerStatus.MaxWeight; p.Race = playerStatus.Race; p.StatCap = playerStatus.StatCap; p.Followers = playerStatus.Followers; p.MaxFollowers = playerStatus.MaxFollowers; p.FireResist = playerStatus.FireResist; p.ColdResist = playerStatus.ColdResist; p.PoisonResist = playerStatus.PoisonResist; p.EnergyResist = playerStatus.EnergyResist; p.Luck = playerStatus.Luck; p.MinDamage = playerStatus.MinDamage; p.MaxDamage = playerStatus.MaxDamage; p.TithingPoints = playerStatus.TithingPoints; p.DefenseChanceIncrease = playerStatus.DefenseChanceIncrease; p.HitChanceIncrease = playerStatus.HitChanceIncrease; p.SwingSpeedIncrease = playerStatus.SwingSpeedIncrease; p.DamageIncrease = playerStatus.DamageIncrease; p.LowerReagentCost = playerStatus.LowerReagentCost; p.SpellDamageIncrease = playerStatus.SpellDamageIncrease; p.FasterCastRecovery = playerStatus.FasterCastRecovery; p.FasterCasting = playerStatus.FasterCasting; p.LowerManaCost = playerStatus.LowerManaCost; break; } } }
public void UpdateState_Gun() { playerCurrentState = PlayerStatus.Gun; //playerControll_Script.GunState(); }
void Start() { playerStatus = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerStatus>(); UpdateBones(); }
public void UpdateState_GolfCircle() { playerCurrentState = PlayerStatus.GolfFree; }
public void AnularInstance() { instance = null; }
public AvatarStatusMsg(PlayerStatus playerStatus) { this.playerStatus = playerStatus; }
void Awake() { instance = this; }
public void SendAfterStatus(Player sender, PlayerStatus playerStatus) { Debug.Log("After status" + playerStatus.ToString()); }
// Use this for initialization void Start() { ps = this.GetComponent <PlayerStatus> (); }
public override void Deserialize(IDataReader reader) { this.status = ProtocolTypeManager.GetInstance <PlayerStatus>(reader.ReadUShort()); this.status.Deserialize(reader); }
/// <summary> /// Sets the player controller /// </summary> /// <param name="playerController">Used to get all inputs and collisions</param> /// <param name="rb">Can be used to modify the player position in more detail.</param> public void Init(InputController inputController, Rigidbody2D rb, PlayerStatus playerStatus) { this.inputController = inputController; this.rigidbody = rb; this.playerEffectManager = playerStatus; }
public PlayerNotDisabled(Node action, GameObject enemy) : base(action) { playerStatus = enemy.GetComponent <PlayerStatus>(); }
private void Awake() { Instance = this; //HasBigFlame = true; }
public void Update(float updateTime) { var mouseState = Mouse.GetState(); var mousePoint = new Point(mouseState.X, mouseState.Y); var lobbyPadRectangle = new Rectangle((int)Position.X, (int)Position.Y, _playerPad.Width * Scale, _playerPad.Height * Scale); if (lobbyPadRectangle.Contains(mousePoint)) { _playerPadInputHover = true; if (mouseState.LeftButton == ButtonState.Pressed && _previousMouseState.LeftButton != ButtonState.Pressed) { OnPadClick?.Invoke(this, EventArgs.Empty); } } else { _playerPadInputHover = false; _playerPadInputHoverExited = true; } if (_playerPadInputHover == true && _playerPadInputHoverExited == true) { //_playerPadHover.Play(); _playerPadInputHoverExited = false; } if (_playerStatus == PlayerStatus.Jumping) { _player = _playerJumping; if (_playerPosition.Y <= -20 * Scale) { _playerPosition.Y = -20 * Scale; _playerStatus = PlayerStatus.Falling; } else { _playerPosition.Y -= 4 * Scale; } } else if (_playerStatus == PlayerStatus.Falling) { _player = _playerJumping; if (_playerPosition.Y >= 0) { _playerPosition.Y = 0; _playerStatus = PlayerStatus.None; } else { _playerPosition.Y += 2 * Scale; } } else { _player = _playerNormal; } _previousMouseState = mouseState; }
// Use this for initialization void Start() { playerCurrentState = PlayerStatus.Vanilla; }
//初期化関数 public override void Initialize(GameObject callObj) { status = callObj.GetComponent <PlayerStatus>(); harts = GetComponentsInChildren <RawImage>(); }
void Awake() { PS = GetComponent <PlayerStatus>(); }