コード例 #1
0
ファイル: PooGameManager.cs プロジェクト: limjinyeoung/poo
    // Update is called once per frame
    void Update()
    {
        if (isPlaying)
        {
            count += Time.deltaTime;
            if (count >= regenTime)
            {
                count -= regenTime;
                PooBomb.GenerateBomb();
            }

            if (PooUIManager.Instance.time > upgradeRegenTime)
            {
                upgradeRegenTime += UpgradeRegenSpeed;
                regenTime        *= 0.9f;
            }
        }
    }
コード例 #2
0
ファイル: PooBomb.cs プロジェクト: limjinyeoung/poo
 // Use this for initialization
 void Start()
 {
     Instance = this;
     this.transform.position = new Vector3(Random.Range(-Screen.width / 100, Screen.width / 100), 11f, 0f);
 }