void Awake() { instance = this; if (duckTransform == null) { duckTransform = GetComponent(typeof(Transform)) as Transform; } }
private void OnMouseDown() { DuckShake.Shake(); shotSprite.SetActive(true); transform.rotation = Quaternion.Euler(0, 0, 180f); rb.isKinematic = false; //Destroy(gameObject); gm.updateScore(); }