Пример #1
0
 void Start()
 {
     spellCaster = GetComponent <SpellCaster>();
     spellCaster.OnStartCast.AddListener(BlockParticleSystem);
     spellCaster.OnEndCast.AddListener(ResumeParticleSystem);
 }
Пример #2
0
 private void Start()
 {
     spellCaster = GetComponent <SpellCaster>();
     StartCoroutine(CastAtTime(castTime));
 }
Пример #3
0
 void Start()
 {
     anim        = GetComponent <Animator>();
     spellCaster = GetComponent <SpellCaster>();
     spellCaster.OnStartCast.AddListener(AnimateSkill);
 }
Пример #4
0
 void Start()
 {
     agent       = GetComponent <NavMeshAgent>();
     spellCaster = GetComponent <SpellCaster>();
 }
Пример #5
0
 private void Start()
 {
     joystick    = spellStickContainer.GetComponent <Joystick>();
     spellCaster = GetComponent <SpellCaster>();
 }