JojikYT

InteractableNPC

Jan 26th, 2023
1,847
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.49 KB | Source Code | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class InteractableNPC : Interactable
  6. {
  7.     private Animator animator;
  8.  
  9.     public override void Start()
  10.     {
  11.         base.Start();
  12.         animator = GetComponent<Animator>();
  13.     }
  14.     protected override void Interaction()
  15.     {
  16.         base.Interaction();
  17.         print("Hello! Unfortunately I don't have a dialog system yet.");
  18.         animator.SetTrigger("Wave");
  19.  
  20.         //Start Dialogue System
  21.     }
  22. }
  23.  
Advertisement
Add Comment
Please, Sign In to add comment