Example #1
0
 void Awake()
 {
     instance = this;
     if (duckTransform == null)
     {
         duckTransform = GetComponent(typeof(Transform)) as Transform;
     }
 }
Example #2
0
    private void OnMouseDown()
    {
        DuckShake.Shake();
        shotSprite.SetActive(true);

        transform.rotation = Quaternion.Euler(0, 0, 180f);
        rb.isKinematic     = false;


        //Destroy(gameObject);
        gm.updateScore();
    }