Пример #1
0
 void Start()
 {
     stormAbility = GameObject.FindGameObjectWithTag("Player").GetComponentInChildren <Storm>();
     playerStats  = stormAbility.GetComponentInParent <PlayerStats>();
     damageType   = stormAbility.damageType;
     damage       = stormAbility.baseDamage;
     anim         = GetComponent <Animator>();
     cc           = GetComponent <CircleCollider2D>();
     StartCoroutine(BoltPrefab());
 }