// Use this for initialization void Start() { GetComponent<Button>().interactable = false; gameMaster = GameMaster.instance; stats = GameObject.Find("Stats").GetComponent<StatsInterface>(); }
// Start is called before the first frame update void Start() { playerSkills = GameObject.FindObjectOfType <PlayerSkills>(); playerHealthManager = GameObject.FindObjectOfType <PlayerHealthManager>(); statsInterface = GameObject.FindObjectOfType <StatsInterface>(); combatStylesInterface = GameObject.FindObjectOfType <CombatStylesInterface>(); playerQuests = new Dictionary <int, int>(); playerQuestKills = new Dictionary <int, int>(); playerQuestObjectives = new Dictionary <int, int>(); anim = GetComponent <Animator>(); // Getting the component with animator myRigidBody = GetComponent <Rigidbody2D>(); checkPlayerExistence(); hideInterfaces(); //playerLabelll = gameObject.GetComponentInChildren<Text>(); //playerLabelll.text = playerName; }