示例#1
0
    void ModifyFogSize(AdvCommandSendMessageByName command)
    {
        float size = command.ParseCellOptional <float>(AdvColumnName.Arg3, 1f);

        child.GetComponent <D2FogsPE>().Size = size;
        //Debug.Log("success size change");
    }
示例#2
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");
    }
示例#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;
    }
示例#4
0
 //シナリオからコマンドを呼んで切り替える
 void SetEnableAdvertise(AdvCommandSendMessageByName command)
 {
     this.isAdOpen = command.ParseCellOptional <bool>(AdvColumnName.Arg3, false);
 }
示例#5
0
 //引数を使った例
 void TestWait(AdvCommandSendMessageByName command)
 {
     StartCoroutine(CoWait(command));
 }
示例#6
0
 //引数を使った例
 void TestArg(AdvCommandSendMessageByName command)
 {
     Debug.Log(command.ParseCellOptional <string>(AdvColumnName.Arg3, "arg3"));
 }
示例#7
0
 //Testという処理を呼ぶ。引数にはAdvCommandSendMessageByNameを持つ
 void Test(AdvCommandSendMessageByName command)
 {
     Debug.Log("SendMessageByName");
 }
示例#8
0
 void EnableFog(AdvCommandSendMessageByName command)
 {
     child.GetComponent <D2FogsPE>().enabled = true;
     //Debug.Log("success enable fog");
 }
示例#9
0
 // Update is called once per frame
 void DisableFog(AdvCommandSendMessageByName command)
 {
     child.GetComponent <D2FogsPE>().enabled = false;
 }
示例#10
0
 public void ShowMenu(AdvCommandSendMessageByName command)
 {
     m_MainMenuCanvas.gameObject.SetActive(true);
     m_WarNode.RefreshData();
 }