Beispiel #1
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;
 }
 void Start()
 {
     check   = FindObjectOfType <fireArea>();
     points  = FindObjectOfType <knightStats>();
     damage  = knight.GetComponent <Hurt_Enemy>();
     hideGUI = FindObjectOfType <Knight_HealthSystem>();
     for (int i = 0; i < skillsArray.Length; i++)
     {
         skillsArray[i].SetActive(false);
     }
     listOfBool.Add(pointInFirstSkill);
     listOfBool.Add(pointInSecondSkill);
     listOfBool.Add(pointInFightOrRunSkill);
     listOfBool.Add(pointInFreez);
     listOfBool.Add(pointInCriticalStrike);
     listOfBool.Add(pointInSkill1);
     listOfBool.Add(pointInSkill2);
     listOfBool.Add(pointInSkill3);
 }
Beispiel #3
0
 void Start()
 {
     CurrentHealth = MaxHealth;
     stats         = FindObjectOfType <knightStats>();
 }
Beispiel #4
0
 void Start()
 {
     stats = GetComponent <knightStats>();
 }