Ejemplo n.º 1
0
    public void Init()
    {
        EventManager.Instance.AddEventListener <YEO_CLOTHES_SUS_EVENT>(AddSuspicion);
        YEO_SUS_CHANGED_EVENT susChangedEvent = new YEO_SUS_CHANGED_EVENT();

        susChangedEvent.Suspicion = iSuspicionLevel;
        EventManager.Instance.FireEvent(susChangedEvent);
    }
Ejemplo n.º 2
0
    public void AddSuspicion(int iSus)
    {
        if (iSuspicionLevel + iSus >= MIN_SUSPICION && iSuspicionLevel + iSus <= MAX_SUSPICION)
        {
            iSuspicionLevel += iSus;
        }

        YEO_SUS_CHANGED_EVENT susChangedEvent = new YEO_SUS_CHANGED_EVENT();

        susChangedEvent.Suspicion = iSuspicionLevel;
        EventManager.Instance.FireEvent(susChangedEvent);

        //Debug.Log("SuspicionController: AddSuspicion: iSus: " + iSus + ", iSuspicionLevel: " + iSuspicionLevel);
    }
Ejemplo n.º 3
0
 public void OnSuspicionChanged(YEO_SUS_CHANGED_EVENT eventData)
 {
     m_SuspicionMeter.SetData(eventData.Suspicion);
     m_NewsWindow.AddNewNewsEntry("Your actions have caused your suspicion to rise... your current suspicion is: " + eventData.Suspicion);
 }