public VerseSelectionInteraction(LandmarkVerses verses, PoemState.GenderEnum gender, TombComponent tombComponent) { _verses = verses; _tombComponent = tombComponent; _poemState = ((PoemState)Player.GetInstance().CurrentState); // TODO: send in constructor DisplayVerses(gender); }
public PoemState(TombComponent tombComponent) { Gender = GenderEnum.Undefined; _tombComponent = tombComponent; AudioController.GetInstance().FadeInPercussion(); IconMarkerComponent.HideAll(); }
// 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); }
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); } }); } }
public void Init(TombComponent tombComponent) { _tombComponent = tombComponent; }
public SendCoffinToTombInteraction(TombComponent tombComponent, GameObject coffin) { _coffin = coffin; _tombComponent = tombComponent; _tomb = _tombComponent.gameObject; }
public DigInteraction(TombComponent tombComponent) { _tombComponent = tombComponent; }
public DigState(TombComponent tombComponent) { _tombComponent = tombComponent; }