Ejemplo n.º 1
0
 bool FindPointOfInterest()
 {
     TimeDebug.Record("find_point_" + name + "_" + GetInstanceID());
     poiTarget = (SomethingInteresting)GlobalPOI.RandomPOI(transform.position);
     TimeDebug.Stop("find_point_" + name + "_" + GetInstanceID());
     if (poiTarget)
     {
         return(true);
     }
     return(false);
 }
    public float timeInvestment; // how much time will npc invest into this

    void Awake()
    {
        GlobalPOI.AddAsPoi(this);
    }