Ejemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        FirstSpell  = GameObject.FindGameObjectWithTag("FirstSpell").GetComponent <Image>();
        SecondSpell = GameObject.FindGameObjectWithTag("SecondSpell").GetComponent <Image>();
        ThirdSpell  = GameObject.FindGameObjectWithTag("ThirdSpell").GetComponent <Image>();
        FourthSpell = GameObject.FindGameObjectWithTag("FourthSpell").GetComponent <Image>();
        FifthSpell  = GameObject.FindGameObjectWithTag("FifthSpell").GetComponent <Image>();

        charaAnimator = GameObject.FindGameObjectWithTag("Player").GetComponent <Animator>();

        Instance         = this;
        currentSpellName = null;
        isDragged        = false;

        doLerp        = false;
        startDuration = 0;
        lerpDuration  = 0.25f;
    }
Ejemplo n.º 2
0
	void Start(){
		_spellm = GameObject.Find ("GameManager").GetComponent<spellManager> ();
	}
Ejemplo n.º 3
0
 private void Start()
 {
     spell = spellManager.instance.currentSpell;
     sm    = gm.GetComponent <spellManager>();
 }
 void Awake()
 {
     instance = this;
 }
Ejemplo n.º 5
0
 // Start is called before the first frame update
 void Start()
 {
     manaMaterial = manaInd.GetComponent <Renderer>().material;
     sm           = GetComponent <spellManager>();
     mana         = sm.percentMana;
 }