/// <summary>
 /// 新しいターゲットの設定
 /// </summary>
 protected void SetNewTarget(GameObject newTarget)
 {
     //ターゲットにイベント送信
     FuncBox.Notify(nowTarget, "OnHover", false);
     //ターゲット切り替え
     if (newTarget)
     {
         nowTarget = newTarget;
     }
     //ターゲットにイベント送信
     FuncBox.Notify(nowTarget, "OnHover", true);
 }
Beispiel #2
0
 protected void Update()
 {
     if (flagPlay)
     {
         //ラベル
         if (label)
         {
             label.text = Mathf.CeilToInt(time).ToString();
         }
         //バー
         if (bar)
         {
             bar.fillAmount = time / startTime;
         }
         //時間
         if (time > 0)
         {
             time -= Time.deltaTime;
             //時間ごとイベント確認
             if (timeEvent != null)
             {
                 if (timeEvent.Length > timeEventIndex)
                 {
                     if (timeEvent[timeEventIndex] > time)
                     {
                         FuncBox.Notify(eventTarget, timeEventFunctionName, timeEvent[timeEventIndex]);
                         timeEventIndex++;
                     }
                 }
             }
             //終了確認
             if (time < 0)
             {
                 FuncBox.Notify(eventTarget, functionName, null);
                 time     = 0f;
                 flagPlay = false;
                 if (label)
                 {
                     label.text = timerEndText;
                 }
             }
         }
     }
 }
 protected void OKButtonClicked()
 {
     FuncBox.Notify(target, functionName, nextColor);
 }
 /// <summary>
 /// 現在のターゲットにイベント通知
 /// </summary>
 protected void NotifyNowTarget(string functionName, object value)
 {
     FuncBox.Notify(nowTarget, functionName, value);
 }
Beispiel #5
0
 protected void OnSubmit(string text)
 {
     FuncBox.Notify(target, functionName, text);
 }
 /// <summary>
 /// ターゲットにイベント通知
 /// </summary>
 protected void NotifyTarget(string functionName, object value)
 {
     FuncBox.Notify(target, functionName, value);
     FuncBox.Notify(subTarget, functionName, value);
 }