Пример #1
0
 public void HitKey()
 {
     Camera.main.animation.Play("Camera jerk");
     instance.targetKey.GetHit();
     CoderDestroyableWorkstation.Damage();
     instance.knightAnim.SetBool("Swing", false);
 }
Пример #2
0
    private void MyGetPoint()
    {
        score++;
        CoderDestroyableWorkstation.Damage();
        if (score == goldLevel)
        {
            CoderDestroyableWorkstation.Destroy();

            CoderLevelEnder.EndLevel();
        }
    }
 void Awake()
 {
     instance              = this;
     spriteRenderer        = GetComponent <SpriteRenderer>();
     spriteRenderer.sprite = frames[0];
 }