private void SetStoneState(InfinityStoneType type) { switch (type) { case InfinityStoneType.Mind: this.EnableProgressAnimation(this.stonesList[0]); break; case InfinityStoneType.Time: this.EnableProgressAnimation(this.stonesList[1]); break; case InfinityStoneType.Reality: this.EnableProgressAnimation(this.stonesList[2]); break; case InfinityStoneType.Power: this.EnableProgressAnimation(this.stonesList[3]); break; case InfinityStoneType.Soul: this.EnableProgressAnimation(this.stonesList[4]); break; case InfinityStoneType.Space: this.EnableProgressAnimation(this.stonesList[5]); break; } }
private void ApplyStoneEffect(InfinityStoneType stoneType) { switch (stoneType) { case InfinityStoneType.Mind: this.LineCreator.OnMindStoneUsed(); break; case InfinityStoneType.Time: this.GameManager.EnemyController.OnTimeStoneUsed(); break; case InfinityStoneType.Soul: this.GameManager.OnSoulStoneUsed(); break; case InfinityStoneType.Reality: this.OnRealityStoneUsed(); break; case InfinityStoneType.Power: this.GameManager.OnPowerStoneUsed(); break; case InfinityStoneType.Space: this.GameManager.OnSpaceStoneUsed(); break; } }
public void InitializeStone(InfinityStoneType type) { switch (type) { case InfinityStoneType.Mind: this.stoneRenderer.sprite = this.stoneSprites[0]; break; case InfinityStoneType.Time: this.stoneRenderer.sprite = this.stoneSprites[1]; break; case InfinityStoneType.Soul: this.stoneRenderer.sprite = this.stoneSprites[2]; break; case InfinityStoneType.Power: this.stoneRenderer.sprite = this.stoneSprites[3]; break; case InfinityStoneType.Reality: this.stoneRenderer.sprite = this.stoneSprites[4]; break; case InfinityStoneType.Space: this.stoneRenderer.sprite = this.stoneSprites[5]; break; } }
public void ShowSelectedStoneHint(InfinityStoneType stoneType, bool autoHide = false) { switch (stoneType) { case InfinityStoneType.Mind: this.selectedStoneHintText.text = "<color=yellow>Line's length increased!</color>"; break; case InfinityStoneType.Space: this.selectedStoneHintText.text = "<color=blue>Avenger transported!</color>"; break; case InfinityStoneType.Power: this.selectedStoneHintText.text = "<color=purple>Hit an enemy to destroy it!</color>"; break; case InfinityStoneType.Time: this.selectedStoneHintText.text = "<color=lime>Enemies slowed down!</color>"; break; case InfinityStoneType.Reality: this.selectedStoneHintText.text = "<color=red>Choose another line type...</color>"; break; case InfinityStoneType.Soul: this.selectedStoneHintText.text = "<color=orange>Destroy half of thanos troops...</color>"; break; } this.selectedStoneHintText.gameObject.SetActive(true); if (autoHide) { this.StartCoroutine(this.WaitThenHideHint()); } }
public string GetStoneDescription(InfinityStoneType stone) { return(this.stoneDescriptionByStone[stone]); }