コード例 #1
0
 public VerseSelectionInteraction(LandmarkVerses verses, PoemState.GenderEnum gender, TombComponent tombComponent)
 {
     _verses        = verses;
     _tombComponent = tombComponent;
     _poemState     = ((PoemState)Player.GetInstance().CurrentState);         // TODO: send in constructor
     DisplayVerses(gender);
 }
コード例 #2
0
 public PoemState(TombComponent tombComponent)
 {
     Gender         = GenderEnum.Undefined;
     _tombComponent = tombComponent;
     AudioController.GetInstance().FadeInPercussion();
     IconMarkerComponent.HideAll();
 }
コード例 #3
0
        // positions are hardcoded as terrain carving is based on fixed coordinates and it is not going to change
        public override void DoInteraction()
        {
            HideFeedback();

            Vector3[] v          = _terrainCarver.DoCarveAction(new Ray(_player.transform.position, _player.MainCamera.transform.forward));
            Vector3   upperLeft  = v[0];
            Vector3   lowerRight = v[1];

            upperLeft  = upperLeft + new Vector3(-1, 0, 0);
            lowerRight = lowerRight + new Vector3(0, 0, -1);

            GameObject    tomb          = new GameObject("_tomb");
            TombComponent tombComponent = tomb.AddComponent <TombComponent>();

            tombComponent.Init(upperLeft, lowerRight);
            tombComponent.PlayerTombTransition(new DigState(tombComponent), true);
        }
コード例 #4
0
 public override void DoInteraction()
 {
     if (_hasHit)
     {
         AudioController.GetInstance().PlayTone();
         _displayMeshText.HideSmooth();
         TombComponent tomb = _finalTombstone.GetComponent <TombComponent>();
         tomb.AddVerse(_selectedVerse.Verse);
         Player.GetInstance().AddPlayerTombVerse(_selectedVerse.Verse);
         Player.GetInstance().CameraController.DisableDepthOfField(0.25f);
         tomb.RaiseGravestone(1.0f, () => {
             if (DisplayVerses())
             {
                 Player.GetInstance().CameraController.EnableDepthOfField(0.5f);
             }
         });
     }
 }
コード例 #5
0
ファイル: TTomb.cs プロジェクト: llikdowk/MusesSextonRecoded
 public void Init(TombComponent tombComponent)
 {
     _tombComponent = tombComponent;
 }
コード例 #6
0
 public SendCoffinToTombInteraction(TombComponent tombComponent, GameObject coffin)
 {
     _coffin        = coffin;
     _tombComponent = tombComponent;
     _tomb          = _tombComponent.gameObject;
 }
コード例 #7
0
 public DigInteraction(TombComponent tombComponent)
 {
     _tombComponent = tombComponent;
 }
コード例 #8
0
 public DigState(TombComponent tombComponent)
 {
     _tombComponent = tombComponent;
 }