private void Start() { player = gameObject.GetComponentInParent <PlayerController>(); skillName = "Block"; skillInfo = "Blocks various attacks"; charges = gameObject.AddComponent <Charges>(); charges.SetCharges(maxCharges, chargeTime); }
void Start() { skillName = "Throw Knives"; skillInfo = "Throws knives at opponent"; skillNumber = 2; skillCooldown = chargeTime; charges = gameObject.AddComponent <Charges>(); charges.SetCharges(maxCharges, chargeTime); }
private void Start() { player = gameObject.GetComponentInParent <PlayerController>(); skillName = "Attack"; skillInfo = "basic attack"; skillCooldown = attackCooldown; playerLayer = 1 << LayerMask.NameToLayer("Player"); charges = gameObject.AddComponent <Charges>(); charges.SetCharges(maxCharges, chargeTime); combo = new Combo(); attackIcon = player.cooldownUiController.attackIcon; darkMask = attackIcon.darkMask.GetComponent <Image>(); }