private void OnTriggerEnter2D(Collider2D collision) { RightJoystick rb = collision.GetComponent <RightJoystick>(); if (collision.gameObject.CompareTag("Player")) { audio.Play(); rb.kecepatanTembak(0.1f); Destroy(gameObject, 0.1f); } }
private void OnTriggerEnter2D(Collider2D collision) { RightJoystick rb = collision.GetComponent <RightJoystick>(); if (collision.gameObject.CompareTag("Player")) { audio.Play(); rb.kecepatanTembak(0.1f); Destroy(gameObject, 0.1f); } }