本文整理汇总了C#中ScoreManager.SetLivesLeftText方法的典型用法代码示例。如果您正苦于以下问题:C# ScoreManager.SetLivesLeftText方法的具体用法?C# ScoreManager.SetLivesLeftText怎么用?C# ScoreManager.SetLivesLeftText使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ScoreManager
的用法示例。
在下文中一共展示了ScoreManager.SetLivesLeftText方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Start
// Use this for initialization
void Start()
{
playerShield.SetActive(false);
Camera camera = Camera.main;
float distance = transform.position.z - camera.transform.position.z;
xmin = camera.ViewportToWorldPoint(new Vector3(0,0,distance)).x + padding;
xmax = camera.ViewportToWorldPoint(new Vector3(1,1,distance)).x - padding;
ymin = camera.ViewportToWorldPoint(new Vector3(0,0,distance)).y + 1.0f;
ymax = camera.ViewportToWorldPoint(new Vector3(1,1,distance)).y - 1.0f;
shipSprite = GetComponent<SpriteRenderer>();
sfxManager = GameObject.FindObjectOfType<SFXManager>();
setPlayerLaser(PlayerPrefsManager.GetWeaponUpgrade());
InvokeRepeating("FireLaser", 0.5f, weaponRepeatRate);
scoreManager = GameObject.FindObjectOfType<ScoreManager>();
scoreManager.SetLivesLeftText(lives);
playerHealthBarOffset = new Vector3 (0f, -0.5f, 0);
}