GetStringExtra() public method

public GetStringExtra ( string paramName, string defaultValue ) : string
paramName string
defaultValue string
return string
示例#1
0
 private void OnFirstScan(Parameters param)
 {
     if (!this.firstScanSuccess)
     {
         this.displayText.text = param.GetStringExtra("DISPLAY_TEXT", "/");
         this.firstScanSuccess = true;
     }
 }
示例#2
0
    private void HandleOnDisplayNotificationEvent(Parameters p)
    {
        string message = p.GetStringExtra("message", string.Empty);

        if (!string.IsNullOrEmpty(message))
        {
            Display(message);
        }
    }
示例#3
0
    public static void CreateEmptyEntry(Parameters parameters)
    {
        print("TYPE " + parameters.GetStringExtra("TYPE", "NONE") + " NUMBER" + parameters.GetIntExtra("NUMBER", 0) + " DESCRIPTIVE NAME"
              + parameters.GetStringExtra("DESCRIPTIVE_NAME", "NONE") + " TIME INTERACTED" + parameters.GetStringExtra("TIME_NEEDLE_INTERACTED", "NONE"));

        if (parameters.GetStringExtra("TYPE", "").Equals("PartitionableObject"))
        {
            Tuple <Entry.Type, int> key = new Tuple <Entry.Type, int>(Entry.Type.PartitionableObject, parameters.GetIntExtra("NUMBER", 0));

            PlayerData.POTally.Add(key, null);
        }
        else if (parameters.GetStringExtra("TYPE", "").Equals("Enemy"))
        {
            Tuple <Entry.Type, int> key = new Tuple <Entry.Type, int>(Entry.Type.Enemy, parameters.GetIntExtra("NUMBER", 0));

            PlayerData.enemyTally.Add(key, null);
        }
        else if (parameters.GetStringExtra("TYPE", "").Equals("LCD"))
        {
            Tuple <Entry.Type, int> key = new Tuple <Entry.Type, int>(Entry.Type.LCD, parameters.GetIntExtra("NUMBER", 0));

            PlayerData.LCDTally.Add(key, null);
        }
    }
示例#4
0
    void UpdateSkinName(Parameters parameters)
    {
        string name = parameters.GetStringExtra("SKIN_NAME", "");

        skinName.text = name;
    }
示例#5
0
    public void Obs_Show(Parameters param)
    {
        string txt = param.GetStringExtra(TOOLTIP_TEXT, "");

        Show(txt);
    }
示例#6
0
 private void GoToEndless(Parameters parameter)
 {
     Time.timeScale = 1.0f;
     Mode           = parameter.GetStringExtra("Mode", " ");
     LoadManager.Instance.LoadScene(SceneNames.ENDLESS_GAME);
 }
示例#7
0
 //make levels as prefabs and just instantiate
 private void GoToClassic(Parameters parameter)
 {
     Time.timeScale = 1.0f;
     Stage          = parameter.GetStringExtra("Stage", " ");
     LoadManager.Instance.LoadScene(SceneNames.CLASSIC_GAME);
 }
示例#8
0
 private void GoToStageSelect(Parameters parameter)
 {
     Level = parameter.GetStringExtra("Level", "");
     LoadManager.Instance.LoadScene(SceneNames.STAGES);
 }
示例#9
0
 private void GoToLevelSelect(Parameters parameter)
 {
     Mode = parameter.GetStringExtra("Mode", Mode);
     LoadManager.Instance.LoadScene(SceneNames.LEVELS);
 }