Пример #1
0
 public void Initialize(Abillity selectedAbillity, GameObject weaponHolder)
 {
     abillity      = selectedAbillity;
     myButtonImage = GetComponent <Image>();
     //abillitySource = GetComponent<AudioSource>();
     myButtonImage.sprite = abillity.aSprite;
     // coolDownDuration = abillity.shootRateBall; // check cooldownduratioon is important but what about shootrateBall??
     abillity.Initialize(weaponHolder);
     AbillityReady();
 }