示例#1
0
 void Start()
 {
     knightFromSkript = knight.gameObject.GetComponent <wasd>();
     coolDownOver     = true;
     loadSkill        = FindObjectOfType <loadSkillTreeScen>();
     regenSkill       = knight.GetComponent <Knight_HealthSystem>();
     timeForCoolDown  = coolDown;
 }
示例#2
0
 void Start()
 {
     knightFromScript = knight.gameObject.GetComponent <wasd>();
     coolDownOver     = true;
     positions        = GameObject.FindGameObjectsWithTag("Enemy");
     timeForCoolDown  = coolDown;
     stamina          = FindObjectOfType <Knight_HealthSystem>();
 }
示例#3
0
 void Start()
 {
     knightFromSkript = knight.gameObject.GetComponent <wasd>();
     coolDownOver     = true;
     coolDownForSkill = coolDown;
     target           = GameObject.FindGameObjectWithTag("a").GetComponent <Transform>();
     test             = FindObjectOfType <loadSkillTreeScen>();
     stamina          = FindObjectOfType <Knight_HealthSystem>();
 }
示例#4
0
 // Start is called before the first frame update
 void Start()
 {
     strength     = 30;
     agility      = 30;
     intelligence = 30;
     endurance    = 30;
     HealthSys    = FindObjectOfType <Knight_HealthSystem>();
     wasdSys      = FindObjectOfType <wasd>();
     StartAttribute();
 }
示例#5
0
 void Start()
 {
     knightCurrentHealth  = knightMaxHealth;
     knightCurrentStamina = knightMaxStamina;
     knightCurrentMana    = knightMaxMana;
     sprint    = dayn1.GetComponent <wasd>();
     skillToss = dayn1.GetComponent <SpecialAttack>();
     hpBar.SetMaxValue(knightMaxHealth);
     mpBar.SetMaxValue(knightMaxMana);
     spBar.SetMaxValue(knightMaxStamina);
 }
示例#6
0
 void Start()
 {
     filePathF5 = "C:/Users/" + Environment.UserName + "/Documents/" + Application.productName + "/Saves/" + "QuickSave-" + Application.loadedLevel + ".save";
     ErrorButton.SetActive(false);
     ErrorRename.SetActive(false);
     saveMenu.SetActive(false);
     Directory.CreateDirectory("C:/Users/" + Environment.UserName + "/Documents/" + Application.productName + "/Saves/");
     boolHere      = FindObjectOfType <loadSkillTreeScen>();
     stats         = FindObjectOfType <knightStats>();
     checkForSword = FindObjectOfType <wasd>();
     hpManaStamina = FindObjectOfType <Knight_HealthSystem>();
     nameOfText    = FindObjectOfType <SaveLoadManager>();
     inventory     = FindObjectOfType <Inventory>();
     AutoLocalSave.interactable = false;
     QuickSave.interactable     = false;
 }
示例#7
0
 void Start()
 {
     rigidbody = GetComponent <Rigidbody2D>();
     damage    = knight.GetComponent <wasd>();
 }
示例#8
0
 void Start()
 {
     save     = FindObjectOfType <PauseMenu>();
     autosave = "C:/Users/" + Environment.UserName + "/Documents/" + Application.productName + "/Saves/" + "autoSave-" + Application.loadedLevel + ".save";
     knight   = FindObjectOfType <wasd>();
 }
示例#9
0
 void Start()
 {
     pickUpText.gameObject.SetActive(false);
     take = otherGame.GetComponent <wasd>();
 }
示例#10
0
 void Start()
 {
     ataka     = knight.GetComponent <wasd>();
     freez     = FindObjectOfType <loadSkillTreeScen>();
     LoadSkill = FindObjectOfType <loadSkillTreeScen>();
 }