public void ARUseRight()
    {
        GameObject     ARPLR       = GameObject.Find("arPlasmaLocationRight");
        ShootingScript shootScript = ARPLR.GetComponent <ShootingScript>();

        shootScript.ARShootRight();
        AudioSource.PlayClipAtPoint(ARShot, Camera.main.transform.position);
    }
Ejemplo n.º 2
0
    private void OnTriggerStay2D(Collider2D collision)
    {
        robotMove rm = GetComponentInParent <robotMove>();

        if (collision.gameObject.tag == "Dean" && Time.time > fire && rm.isRight == true)
        {
            fire = Time.time + fireRatePlasma;

            ShootingScript shootScript = GetComponent <ShootingScript>();
            shootScript.ARShootRight();
            AudioSource.PlayClipAtPoint(ARShot, Camera.main.transform.position);
        }
    }