예제 #1
0
 private void Start()
 {
     player    = gameObject.GetComponentInParent <PlayerController>();
     skillName = "Block";
     skillInfo = "Blocks various attacks";
     charges   = gameObject.AddComponent <Charges>();
     charges.SetCharges(maxCharges, chargeTime);
 }
예제 #2
0
 void Start()
 {
     skillName     = "Throw Knives";
     skillInfo     = "Throws knives at opponent";
     skillNumber   = 2;
     skillCooldown = chargeTime;
     charges       = gameObject.AddComponent <Charges>();
     charges.SetCharges(maxCharges, chargeTime);
 }
예제 #3
0
 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>();
 }