Пример #1
0
    void Update()
    {
//		if (Input.GetKeyDown(KeyCode.N)){
//			PlayerNowMessage.inst.Display("gadget throw:"+gadgetThrow.myName,transform.position);
//		}

        if (thrownNumberTimeout > 0)
        {
            thrownNumberTimeout -= Time.deltaTime;
            if (thrownNumberTimeout < .1f)
            {
                if (thrownNumber)
                {
                    thrownNumber.layer = thrownNumberOriginalLayer;
                }
                thrownNumber = null;                 // after some time, forget what number we threw.
            }
        }

        if (currentGadget)
        {
            currentGadget.GadgetUpdate();
        }
    }