Beispiel #1
0
 public static string PayloadName(Payload p)
 {
     switch (p)
     {
     default:
         Diglbug.LogWarning("Failed to return a pre-defined PayloadName for " + p + " - please define one!");
         return("undefined_payload_string");
     }
 }
Beispiel #2
0
 private void Awake()
 {
     if (audioClip)
     {
         SetAudioClip(audioClip);
     }
     else
     {
         Diglbug.LogWarning("AudioClip not found at Awake for " + name + ", this must be set before use");
     }
 }
Beispiel #3
0
 public Act GetActForDefinedAct(DefinedAct a)
 {
     for (int k = 0; k < acts.Length; k++)
     {
         if (acts [k].definedAct == a)
         {
             return(acts [k]);
         }
     }
     Diglbug.LogWarning("GetActForDefinedAct request returned empty! " + a);
     return(null);
 }
Beispiel #4
0
 public Act GetActForPayload(Payload p)
 {
     for (int k = 0; k < acts.Length; k++)
     {
         if (acts [k].entryPayload == p)
         {
             return(acts [k]);
         }
     }
     Diglbug.LogWarning("GetActForPayload request returned empty! " + p);
     return(null);
 }
Beispiel #5
0
 public Payload GetPayloadForDefinedAct(DefinedAct a)
 {
     for (int k = 0; k < acts.Length; k++)
     {
         if (acts [k].definedAct == a)
         {
             return(acts [k].entryPayload);
         }
     }
     Diglbug.LogWarning("GetPayloadForDefinedAct request returned empty! " + a);
     return(Payload.NONE);
 }
Beispiel #6
0
    public DefinedAct GetDefinedActForPayload(Payload p)
    {
        Act ret = GetActForPayload(p);

        if (ret == null)
        {
            Diglbug.LogWarning("GetDefinedActForPayload request returned empty! " + p);
            return(DefinedAct.ACT_SHOW_START);
        }
        else
        {
            return(ret.definedAct);
        }
    }
 private void OnValidate()
 {
     FindText();
     if (mandarinIsUndefined && textToChange.text.Length < 1)
     {
         Diglbug.LogWarning(name + " found with undefined language text");
         mandarinText = "<UNDEFINED>";
     }
     if (updateEnglishToCurrent)
     {
         englishText            = textToChange.text;
         updateEnglishToCurrent = false;
     }
     if (updateMandarinToCurrent)
     {
         mandarinText            = textToChange.text;
         updateMandarinToCurrent = false;
     }
 }
Beispiel #8
0
    private void RequestSendSignal(Signal s)
    {
        if (upcomingPayload != Payload.NONE)         //expectingPayload) {
        {
            if (s.GetPayload() == upcomingPayload)
            {
                ClearAndSendSignal(s);
            }
            else
            {
                Diglbug.LogWarning("Trying to send unexpected Signal " + s.GetPrint() + ", expected: " + upcomingPayload);
//				confirmationScreen.OpenWithAttemptedSignal (s);
            }
        }
        else
        {
            SendSignal(s);
        }
    }
Beispiel #9
0
 public override void SwitchToLanguage(Language l)
 {
     Diglbug.LogWarning("Warning! " + name + " is marked as having undefined language");
 }