public void ARUseLeft()
    {
        GameObject     ARPLL       = GameObject.Find("arPlasmaLocationLeft");
        ShootingScript shootScript = ARPLL.GetComponent <ShootingScript>();

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

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

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