Beispiel #1
0
    //4 6 8 10 12 / 5 10 kinetic
    //262 4 6 8 70 /5 270
    private void Awake()
    {
        StartingWall = transform.GetChild(0).gameObject;
        Logo         = transform.GetChild(1).gameObject;
        IngameTimer  = GetComponent <InGameTimer>();
        mainCam      = Camera.main.GetComponent <RTS_Cam.RTS_Camera>();

        if (!sysmsg)
        {
            sysmsg = GameObject.FindGameObjectWithTag("SystemMsg").GetComponent <SystemMessage>();
        }

        //이벤트 수신
        PhotonNetwork.OnEventCall += SceneLoaded_Received;

        //포지션 세팅
        for (int i = 0; i < 5; i++)
        {
            redPos.Add(new Vector3(4 + (i * 2), 0.5f, 10f));
        }
        for (int i = 0; i < 5; i++)
        {
            bluePos.Add(new Vector3(262 + (i * 2), 0.5f, 270f));
        }
    }
 private void timeOut(InGameTimer item = null)
 {
     if (renderingController == null)
     {
         renderingController.CloudySwitch = false;
         SetRainbowActive();
     }
     mTimer = null;
 }
Beispiel #3
0
 private void OnLevelWasLoaded(int level)
 {
     if (SceneManager.GetSceneByBuildIndex(level).name.Equals("InGame"))
     {
         SendTypeDisplay.text = "[전체]";
         IngameTimer          = GameObject.FindGameObjectWithTag("InGameManager").GetComponent <InGameTimer>();
         isInGame             = true;
         chatBox.fontSize     = 22;
     }
     else if (SceneManager.GetSceneByBuildIndex(level).name.Equals("Selection"))
     {
         isInGame  = false;
         selection = GameObject.FindGameObjectWithTag("SelectionManager").GetComponent <SelectionManager>();
     }
     else
     {
         isInGame = false;
     }
     Mychamp        = PlayerData.Instance.championName;
     chatInput.text = string.Empty;
 }
    //恢复大世界晴天
    public void RecoverBigWorldRainSky()
    {
        if (renderingController == null)
        {
            return;
        }
        if (rainSky == null)
        {
            return;
        }

        DOTween.To(() => renderingController.CloudyLevel, x => { renderingController.CloudyLevel = x; }, 0, 10);

        DOTween.To(() => rainSky.RainLevel, x => { rainSky.RainLevel = x; }, 0, 10);

        DOTween.To(() => rainSky.Wetness, x => { rainSky.Wetness = x; }, 0, 10);
        mTimer = TimeManager.Instance.CreateTimer(10, true).RegisterCompleteCallback(timeOut);
        mTimer.Start();
        CloudySwitch = 0;
        CloudyLevel  = 0;
        RainLevel    = 0;
        Wetness      = 0;
    }
Beispiel #5
0
 private void Start()
 {
     instance = instance ?? this;
     ResetValues();
 }