本文整理汇总了C#中Timer.initialize方法的典型用法代码示例。如果您正苦于以下问题:C# Timer.initialize方法的具体用法?C# Timer.initialize怎么用?C# Timer.initialize使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Timer
的用法示例。
在下文中一共展示了Timer.initialize方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Start
// Use this for initialization
void Start()
{
//Always want to start with the enemy alive
isDead = false;
flashTimer = gameObject.AddComponent<Timer>();
flashTimer.initialize(.1f, false);
}
示例2: Start
// Use this for initialization
void Start () {
if (textScript != null)
{
Destroy(transform.root.gameObject);
}
else
{
textScript = this;
textPanel.SetActive(false);
displaying = false;
DontDestroyOnLoad(transform.root.gameObject);
displayTimer = gameObject.AddComponent<Timer>();
displayTimer.initialize(5, false);
shuffleScript();
}
}
示例3: Start
// Use this for initialization
void Start () {
if (scoreKeeper != null)
{
Destroy(this.gameObject);
return;
}
else
{
scoreKeeper = this;
DontDestroyOnLoad(this.gameObject);
score = initialScore;
degenerationTimer = gameObject.AddComponent<Timer>();
degenerationTimer.initialize(degenerationTime, false);
}
}
示例4: Start
// Use this for initialization
void Start () {
if (pSkills != null)
{
Destroy(this.gameObject);
return;
}
else
{
pSkills = this;
DontDestroyOnLoad(transform.root.gameObject);
skillPoints = 0;
UIDropdownCool = gameObject.AddComponent<Timer>();
UIDropdownCool.initialize(.2f, false);
UIPanel.SetActive(false);
up = true;
}
}
示例5: Start
// Use this for initialization
void Start()
{
//Always want to start with the enemy alive
isDead = false;
try
{
flashTimer = gameObject.AddComponent<Timer>();
flashTimer.initialize(.1f, false);
self = transform.GetComponent<Enemy>();
enemyAI = transform.GetComponent<EnemyAI>();
}
catch
{
}
}
示例6: Start
void Start()
{
//Always want to start with the player alive
isDead = false;
//Always want to start where we can be damaged.
canDamage = true;
manaRegenTimer = gameObject.AddComponent<Timer>();
manaRegenTimer.initialize(manaRegenTime, false);
healthRegenTimer = gameObject.AddComponent<Timer>();
healthRegenTimer.initialize(healthRegenTime, false);
delayTimer = gameObject.AddComponent<Timer>();
delayTimer.initialize(delayTime, false);
gameOverTimer = gameObject.AddComponent<Timer>();
gameOverTimer.initialize(2, false);
flashTimer = gameObject.AddComponent<Timer>();
flashTimer.initialize(.1f, false);
anim = GetComponent<Animator>();
soundSource = FindObjectOfType<SoundScript>();
}
示例7: Start
// Use this for initialization
void Start () {
self = GetComponent<Enemy>();
spriteRenderer = GetComponent<SpriteRenderer>();
canShoot = true;
timeToShootTimer = gameObject.AddComponent<Timer>();
timeToShootTimer.initialize(shootWaitTime, false);
//Sets our rigidBody to our own rigidBody2D component.
selfRigid = GetComponent<Rigidbody2D>();
//Sets the player rigidbody2D object to the gameObject that the playerMovement script is attached to(AKA, the player)
player = GameObject.FindObjectOfType<PlayerMovement>().GetComponent<Rigidbody2D>();
}
示例8: Start
// Use this for initialization void Start () {
void Start () {
//Start in melee type
meleeType = true;
canMelee = true;
canRange = true;
meleeCooldownTimer = gameObject.AddComponent<Timer>();
meleeCooldownTimer.initialize(meleeCool, false);
delayRangeTimer = gameObject.AddComponent<Timer>();
delayRangeTimer.initialize(rangeDelay, false);
swapCooldownTimer = gameObject.AddComponent<Timer>();
swapCooldownTimer.initialize(swapCooldownTime, false);
meleeDelayTimer = gameObject.AddComponent<Timer>();
meleeDelayTimer.initialize(meleeDelay, false);
anim = transform.GetComponent<Animator>();
soundSource = FindObjectOfType<SoundScript>();
}
示例9: Start
public void Start()
{
flashTimer = gameObject.AddComponent<Timer>();
flashTimer.initialize(.1f, false);
}