SHARE
TWEET

Untitled

a guest Aug 19th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using UnityEngine;
  2.  
  3. public class PointOfInterest : Subject
  4. {
  5.     //Nama dari point of interest
  6.     [SerializeField]
  7.     private string _poiName;
  8.  
  9.     //Jika gameobject di disable akan menotify Observernya
  10.     private void OnDisable()
  11.     {
  12.         Notify(_poiName);
  13.     }  
  14. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top