//connect to each script void Start() { player = this.gameObject; stat = player.GetComponent <StatCollectionClass>(); psg = player.GetComponent <PlayerStateGUI> (); quest = player.GetComponent <All_Quests> (); }
// Use this for initialization void Start() { CreateQuests(); //find out all GUI we need to handle player = GameObject.FindWithTag("Player"); psg = player.GetComponent <PlayerStateGUI> (); skill = player.GetComponent <SkillTree> (); }
void Start() { player = this.gameObject; stat = player.GetComponent<StatCollectionClass >(); skill = player.GetComponent<SkillTree >(); quest = player.GetComponent<All_Quests> (); ps = player.GetComponent<PlayerStateGUI>(); }
// Use this for initialization void Start() { CreateQuests (); //find out all GUI we need to handle player = GameObject.FindWithTag ("Player"); psg = player.GetComponent<PlayerStateGUI> (); skill = player.GetComponent<SkillTree> (); }
// Use this for initialization void Start() { rb2D = GetComponent <Rigidbody2D>(); playerStateGUIScript = FindObjectOfType <PlayerStateGUI>(); }
// Use this for initialization void Start() { CreateQuests (); //find out all GUI we need to handle player = GameObject.FindWithTag ("Player"); psg = player.GetComponent<PlayerStateGUI> (); skill = player.GetComponent<SkillTree> (); item = player.GetComponent<ItemGUI> (); Q1Script = this.gameObject.GetComponent<Quest1>(); Q2Script = this.gameObject.GetComponent<Quest2>(); Q3Script = this.gameObject.GetComponent<Quest3>(); Q4Script = this.gameObject.GetComponent<Quest4>(); R = GameObject.Find ("Arrow").GetComponent<RotateTo>(); }