Exemple #1
0
    // Use this for initialization

    public override void OnHit(Collider other)
    {
        //+1 к жизни
        GuiLayer.AddToLife(5, null);
        PlayClipSound();
        MakeInactive();
    }
Exemple #2
0
    // Use this for initialization

    public override void OnHit(Collider other)
    {
        playerScript.StumbleTrigger();
        GuiLayer.AddToLife(-3, singleTransform);
        GuiLayer.AddHeadStars();
        PlayClipSound();
        MakeInactive();
    }
Exemple #3
0
    // Use this for initialization

    public override void OnHit(Collider other)
    {
        GuiLayer.AddToLife(-50, singleTransform);
        GuiLayer.AddHeadStars();
        PlayClipSound();
        if (playerScript.isVodka())
        {
            playerScript.MakeVodkaBoom();
            MakeInactiveParent();
        }
    }
Exemple #4
0
    // Use this for initialization

    public override void OnHit(Collider other)
    {
        GuiLayer.AddToLife(1, singleTransform);
        PlayClipSound();
        MakeInactive();
    }