当前位置: 首页>>代码示例>>C#>>正文


C# Timer.initialize方法代码示例

本文整理汇总了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);
 }
开发者ID:bobjrsenior,项目名称:The_Final_Mage_2,代码行数:8,代码来源:finalBossHealth.cs

示例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();
        }
	}
开发者ID:bobjrsenior,项目名称:The_Final_Mage_2,代码行数:17,代码来源:TextBoxScript.cs

示例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);
        }
	}
开发者ID:bobjrsenior,项目名称:The_Final_Mage_2,代码行数:17,代码来源:Scoring.cs

示例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;
        }
	}
开发者ID:bobjrsenior,项目名称:The_Final_Mage_2,代码行数:18,代码来源:Skills.cs

示例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
        {
        }


        
    }
开发者ID:bobjrsenior,项目名称:The_Final_Mage_2,代码行数:19,代码来源:EnemyHealth.cs

示例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>();
 }
开发者ID:bobjrsenior,项目名称:The_Final_Mage_2,代码行数:20,代码来源:PlayerHealth.cs

示例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>();
	}
开发者ID:bobjrsenior,项目名称:The_Final_Mage_2,代码行数:16,代码来源:EnemyAI.cs

示例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>();
	}
开发者ID:bobjrsenior,项目名称:The_Final_Mage_2,代码行数:18,代码来源:PlayerAttack.cs

示例9: Start

 public void Start()
 {
     flashTimer = gameObject.AddComponent<Timer>();
     flashTimer.initialize(.1f, false);
 }
开发者ID:bobjrsenior,项目名称:The_Final_Mage_2,代码行数:5,代码来源:Barrier.cs


注:本文中的Timer.initialize方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。