Unity 2D RPG Tutorial 5 - Interaction System - Collidables & Interaction (inheritance)

Поделиться
HTML-код
  • Опубликовано: 23 ноя 2024

Комментарии • 21

  • @exice2878
    @exice2878 Год назад +2

    Great Tutorial it really helped my Game

  • @chaching0613
    @chaching0613 3 месяца назад

    These videos are great, I wish they got more recognition! What unity extension are you using for VS?

  • @bear2c
    @bear2c Год назад +1

    Thanks, you really made my job eaiser!

  • @sunkenship9552
    @sunkenship9552 Год назад +1

    Great video!

  • @magicamecil
    @magicamecil 2 года назад +2

    This video is amazing!!

    • @Antarsoft
      @Antarsoft  2 года назад +1

      Thank you ❤️❤️
      Would love to have you as a subscriber 😇

  • @slickyblicky1711
    @slickyblicky1711 2 года назад +1

    Great tutorial

  • @NIKtracks
    @NIKtracks 2 года назад +2

    Perfect ! Thank you ! I can‘t find the 2nd part. Is there already the 2nd part ?

    • @Antarsoft
      @Antarsoft  2 года назад +2

      Hey, my bad I forgot to correct the title.
      There will be more related stuff , like picking up items and such.
      But for that we'll need an inventory system, that's why the next video is about inventory

    • @NIKtracks
      @NIKtracks 2 года назад +1

      @@Antarsoft okay i see, this is great, i‘m really excited 🤩

    • @Antarsoft
      @Antarsoft  2 года назад +1

      Same here 😎😎 please do subscribe, would love to have you as a sub 😇

  • @darknside
    @darknside Год назад +1

    nice video

  • @LoveHelgesson
    @LoveHelgesson 10 месяцев назад

    I cant change modifiers when overriding a protected void...

  • @vladkanunnikov1443
    @vladkanunnikov1443 2 года назад

    How can I change the opening and closing animations?

    • @Antarsoft
      @Antarsoft  2 года назад +1

      I didn't setup any animation in the video but you have the method where you do the interact logic.
      From there call your animator and play your desired animation.

    • @vladkanunnikov1443
      @vladkanunnikov1443 2 года назад

      @@Antarsoft Forgive me for my impudence, but for a month I have tried in every possible way to add interaction with the animator, but nothing works (the animator itself works if you manually check the "Interact --> true" checkbox in the Animator).
      Can you tell me what is wrong please?
      public class InteractableObject : CollidableObject
      {
      private bool z_Interacted = false;
      public Animator objectanimator;
      protected override void OnCollided(GameObject collidedObject)
      {
      if (Input.GetKey(KeyCode.E))
      {
      OnInteract();
      }
      }
      protected virtual void OnInteract()
      {
      if (!z_Interacted)
      {
      z_Interacted = true;
      objectanimator.SetBool("Interact", true);
      Debug.Log("Interact with " + name);
      StartCoroutine(DoInteraction());
      objectanimator.SetBool("Interact", false);
      }

      }
      IEnumerator DoInteraction()
      {
      yield return new WaitForSeconds(.1f);
      z_Interacted = false;
      }
      }