End trigger.
Inheritance: MonoBehaviour
    void Update()
    {
        Ending = GameObject.FindWithTag("Trigger").GetComponent <EndTrigger>();

        if (Ending.EndState == true)
        {
            int    imin = Lap_Time.imin, isec = Lap_Time.isec, imsec = Lap_Time.imsec;
            string msg = string.Format("{0:d2}:{1:d2}:{2:d2}", imin, isec, imsec);

            My_Time.text = msg;
            photonView.RPC("ReceiveMsg", RpcTarget.OthersBuffered, msg); // 보내기
        }
    }
示例#2
0
    private bool ExcuteEndTrigger()
    {
        bool flag  = false;
        bool flag2 = true;

        foreach (GameObject current in this.EndTriggerList)
        {
            if (!(current == null))
            {
                EndTrigger component = current.GetComponent <EndTrigger>();
                if (flag)
                {
                    current.SetActive(true);
                    component.Init(this);
                    if (EventTrigger.m_DebugMode)
                    {
                        TsLog.Log("[{0}] Start EndTrigger: {1}", new object[]
                        {
                            base.GetType().Name,
                            current.name
                        });
                    }
                }
                if (current.activeInHierarchy)
                {
                    if (!component.bPopNext)
                    {
                        flag = component.IsNextPop();
                    }
                    current.SetActive(component.Excute());
                    if (!current.activeInHierarchy && EventTrigger.m_DebugMode)
                    {
                        TsLog.Log("[{0}] End EndTrigger: {1}", new object[]
                        {
                            base.GetType().Name,
                            current.name
                        });
                    }
                    flag2 = false;
                }
            }
        }
        if (flag2)
        {
            this.EndEndTrigger();
            return(false);
        }
        return(true);
    }
示例#3
0
 private void EndEndTrigger()
 {
     foreach (GameObject current in this.EndTriggerList)
     {
         EndTrigger component = current.GetComponent <EndTrigger>();
         component.bPopNext = false;
     }
     if (EventTrigger.m_DebugMode)
     {
         TsLog.Log("[{0}] End EndTriger", new object[]
         {
             base.GetType().Name
         });
     }
     this._CurrentExcute = EventTrigger._EVENTTRIGGER.Behavior;
 }
示例#4
0
    private void Start()
    {
        _canvas        = GameObject.Find("Canvas").GetComponent <Canvas>();
        _canvasScaler  = GameObject.Find("Canvas").GetComponent <CanvasScaler>();
        _player        = FindObjectOfType <NewPlayer>();
        _gammie        = FindObjectOfType <Gammie>();
        _water         = FindObjectOfType <WaterTrigger>();
        _endTrigger    = FindObjectOfType <EndTrigger>();
        _tutorialRage  = FindObjectOfType <TutorialRage>();
        _bjornActivate = FindObjectOfType <BjornArmActivate>();

        _eventManager = EventManager.Instance != null ? EventManager.Instance : FindObjectOfType <EventManager>();
        if (_eventManager == null)
        {
            Debug.Log("Event Manager is NULL");
        }
    }