Exemple #1
0
 public void InitComponent()
 {
     _instance           = this;
     anim                = GetComponent <Animator>();
     _skillUtils         = SkillUtils.GetInstance();
     animatorInfo        = anim.GetCurrentAnimatorStateInfo(0);
     animatorInfoAtk     = anim.GetCurrentAnimatorStateInfo(1);
     characterController = GetComponent <CharacterController>();
     _swordLight         = transform.Find("katanaPos/Slash10").GetComponent <ParticleSystem>();
     _swordLight.Stop();
     magicFactory   = transform.Find("MagicFactory").gameObject;
     FrontGroundPos = transform.Find("FrontGroundPos").gameObject;
 }