Exemplo n.º 1
0
    private void WenyaoUpdate()
    {
        if (lotusTimer % 64 == 0 && lotusLoop < 10)
        {
            Lotus lotusInAir = new Lotus(lotusTemplate, UnityEngine.Random.insideUnitSphere + wenyaoBannerOrigin);
            lotusCloverManager.AddLotus(lotusInAir);
            lotusLoop++;
        }


        if (lotusTimer == 130)
        {
            lotusTimer = 0;
        }
        lotusTimer++;
    }
Exemplo n.º 2
0
    // Update is called once per frame
    void Update()
    {
        if (Input.GetMouseButtonUp(0))
        {
            Ray ray = cam.ScreenPointToRay(Input.mousePosition);
            if (Input.GetMouseButtonUp(0))
            {
                Vector3 PointInAir = ray.GetPoint(2.0f);

                Lotus lotusInAir = new Lotus(lotusTemplate, PointInAir);

                lotusCloverManager.AddLotus(lotusInAir);
            }
        }
    }