Exemple #1
0
    void ModifyFogColor(AdvCommandSendMessageByName command)
    {
        float r = command.ParseCellOptional <float>(AdvColumnName.Arg3, 0f);
        float g = command.ParseCellOptional <float>(AdvColumnName.Arg4, 0f);
        float b = command.ParseCellOptional <float>(AdvColumnName.Arg5, 0f);
        float a = command.ParseCellOptional <float>(AdvColumnName.Arg6, 1f);
        Color c = new Color(r, g, b, a);

        child.GetComponent <D2FogsPE>().Color = c;
        //Debug.Log("success size color");
    }
Exemple #2
0
    void ModifyFogSize(AdvCommandSendMessageByName command)
    {
        float size = command.ParseCellOptional <float>(AdvColumnName.Arg3, 1f);

        child.GetComponent <D2FogsPE>().Size = size;
        //Debug.Log("success size change");
    }
Exemple #3
0
    IEnumerator CoWait(AdvCommandSendMessageByName command)
    {
        command.IsWait = true;

        float time = command.ParseCellOptional <float>(AdvColumnName.Arg3, 0);

        while (true)
        {
            Debug.Log(time);
            time -= Time.deltaTime;
            if (time <= 0)
            {
                break;
            }
            yield return(0);
        }
        command.IsWait = false;
    }
Exemple #4
0
 //シナリオからコマンドを呼んで切り替える
 void SetEnableAdvertise(AdvCommandSendMessageByName command)
 {
     this.isAdOpen = command.ParseCellOptional <bool>(AdvColumnName.Arg3, false);
 }
Exemple #5
0
 //引数を使った例
 void TestArg(AdvCommandSendMessageByName command)
 {
     Debug.Log(command.ParseCellOptional <string>(AdvColumnName.Arg3, "arg3"));
 }