예제 #1
0
    public void Update()
    {
        if (Terrain.isMeshSyncronized && _hasClicked)
        {
            string terrainTag = Terrain.tag;
            foreach (Transform child in Terrain.GetComponentsInChildren <Transform>())
            {
                child.tag = terrainTag;
            }
            enabled = false;

            UIGame.GetInstance().FadeOut(FallbackImage, 0.5f, () => {
                FallbackImage.gameObject.SetActive(false);
                Time.timeScale = _originalTimeScale;
            });
        }
        else
        {
            if (Input.GetKeyDown(KeyCode.Mouse0))
            {
                _hasClicked = true;

                UIGame.GetInstance().FadeOut(TitleImage, 3.0f, () => {
                    TitleImage.gameObject.SetActive(false);
                });
                FallbackImage.gameObject.SetActive(true);

                AudioController.GetInstance().PlayBell();
                AudioController.GetInstance().FadeInWind();
            }
        }
    }
        public override void ShowFeedback()
        {
            RaycastHit hit;

            _player.GetEyeSight(out hit);

            UIGame.GetInstance().ShowCrosshair(false);
            _digMarker.SetActive(true);
            _digMarker.transform.position = hit.point;
            _digMarker.transform.up       = Vector3.Lerp(_digMarker.transform.up, hit.normal, 0.05f);
        }
예제 #3
0
 public void OnTriggerEnter(Collider other)
 {
     if (other.tag != TagManager.Get(Tag.Player))
     {
         return;
     }
     if (GameState.HasEnded)
     {
         UIGame.GetInstance().FadeToBlack(2.5f, () => {
             Application.OpenURL("https://twitter.com/intent/tweet?button_hashtag=MusesSexton&text="
                                 + Player.GetInstance().GetPlayerTombVerse()
                                 + "%0D" + Player.GetInstance().GetPlayerTombVerse()
                                 + "%0D" + Player.GetInstance().GetPlayerTombVerse()
                                 + "%0D");
             Application.Quit();
         });
     }
 }
 public override void HideFeedback()
 {
     UIGame.GetInstance().ShowCrosshair(true);
     _digMarker.SetActive(false);
 }