// Start is called before the first frame update void Start() { spellManage = FindObjectOfType <SpellManager>(); cardManager = FindObjectOfType <GenerateSpellCards>(); text.text = word; damageText.text = "" + damage; }
public void StartPlayerTurn() { Debug.Log("Player Turn Starting"); spellCards = FindObjectOfType <GenerateSpellCards>(); if (spellCards != null) { spellCards.Draw(); } }
// Start is called before the first frame update void Start() { winPanel.SetActive(false); playerDeck = FindObjectOfType <Deck>(); playerDrawCards = FindObjectOfType <GenerateSpellCards>(); states = FindObjectOfType <StateManager>(); StateManager.currentState = StateManager.GameState.SpellSelect; Invoke("StartPlayerTurn", .5f); map = FindObjectOfType <Map>(); }
private void Start() { sound = FindObjectOfType <SoundEffects>(); deck = FindObjectOfType <Deck>(); deck.ResetDecks(); healthBar.maxValue = health; healthBar.value = health; maxHealth = health; spellCards = FindObjectOfType <GenerateSpellCards>(); healhText.text = "<b>Health </b>" + health + " / " + maxHealth; screenShake = FindObjectOfType <ScreenShake>(); screenFlash = FindObjectOfType <ScreenFlash>(); }
public void StartPlayerTurn() { spellCards = FindObjectOfType <GenerateSpellCards>(); if (spellCards != null) { if (deck.newHand.Count == 0) { spellCards.Draw(); } else { spellCards.TurnOnhand(); } } }
private void OnEnable() { thisCardHelp = Instantiate(cardHelp, FindObjectOfType <Canvas>().transform); helpWord = thisCardHelp.transform.Find("Word").GetComponent <TextMeshProUGUI>(); helpWordDef = thisCardHelp.transform.Find("WordDef").GetComponent <TextMeshProUGUI>(); helpEffect = thisCardHelp.transform.Find("Effect").GetComponent <TextMeshProUGUI>(); helpEffectDef = thisCardHelp.transform.Find("EffectDef").GetComponent <TextMeshProUGUI>(); helpDamageDef = thisCardHelp.transform.Find("DamDef").GetComponent <TextMeshProUGUI>(); thisCardHelp.SetActive(false); spellManage = FindObjectOfType <SpellManager>(); cardManager = FindObjectOfType <GenerateSpellCards>(); SetSecondaryEffect(); SetVisual(); thisSecondaryEffect.spellLevel = spellLevel; secondaryDescription.text = thisSecondaryEffect.GetDescription(); text.text = word; damageText.text = "" + damage; currentTimePressed = 0; }
private void Start() { healthBar.maxValue = health; healthBar.value = health; spellCards = FindObjectOfType <GenerateSpellCards>(); }