本文整理汇总了C#中PlayerStatus类的典型用法代码示例。如果您正苦于以下问题:C# PlayerStatus类的具体用法?C# PlayerStatus怎么用?C# PlayerStatus使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PlayerStatus类属于命名空间,在下文中一共展示了PlayerStatus类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Load
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);
}
示例2: Start
// 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);
}
示例3: Primed
public void Primed()
{
anim.speed = 1;
playerStatus = PlayerStatus.PRIMED;
anim.SetTrigger("Prime");
primeTime = PRIME_DURATION;
}
示例4: Player
public Player(TcpClient client, Team equipa)
{
this.client = client;
this.equipa = equipa;
this.playerStatus = PlayerStatus.Waiting;
this.MsgCounter = 0;
}
示例5: Awake
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);
}
示例6: InitializeComponent
/// <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);
}
示例7: PowerActionEnter
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;
}
}
示例8: Penalize
public void Penalize()
{
playerStatus = PlayerStatus.PENALIZED;
this.transform.parent.GetComponent<KissPuzzle> ().kissFailSound.Play ();
anim.SetTrigger("Penalize");
penaltyTimer = PENALTY_DURATION;
}
示例9: Start
// Use this for initialization
void Start () {
playerStatus = GetComponent<PlayerStatus>();
playerStatus.player = this;
hasMissed = false;
//missedTimer = musicCore.tempoInterval;
gameLoop = GameObject.Find("GameLogic").GetComponent<GameLoop>();
}
示例10: Awake
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;
}
示例11: Trigger
public void Trigger()
{
anim.SetTrigger("Start");
anim.speed = 1 / START_DURATION;
playerStatus = PlayerStatus.STARTING;
startTime = START_DURATION;
}
示例12: determineIfPenalized
public void determineIfPenalized()
{
if (playerStatus != PlayerStatus.SUCCESS)
{
playerStatus = PlayerStatus.PENALIZED;
}
}
示例13: trigger
public void trigger()
{
apple.Drop();
this.transform.parent.GetComponent<ApplePuzzle> ().dropSound.Play ();
this.playerStatus = PlayerStatus.WAITING;
anim.SetTrigger("Release");
}
示例14: Start
void Start()
{
_status = GetComponent<PlayerStatus>();
_sceneConfiguration = FindObjectOfType<SceneConfiguration>();
_playerModel = GameObject.FindGameObjectWithTag("PlayerModel");
_levelEnd = GameObject.FindGameObjectWithTag("levelEnd");
}
示例15: Start
// Use this for initialization
void Start()
{
score = FindObjectOfType<Score>();
playerStatus = FindObjectOfType<PlayerStatus>();
anim = GetComponent<Animator> ();
testPlaerAttack =playerStatus.playerPower;
}