Esempio n. 1
0
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.J))
        {
            particleLauncher.SetShooting(true);
        }

        if (Input.GetKeyUp(KeyCode.J))
        {
            particleLauncher.SetShooting(false);
        }

        transform.Rotate(Vector3.right, Mathf.Sin(Time.deltaTime * 100));
    }