Inheritance: MonoBehaviour
Esempio n. 1
0
    //connect to each script
    void Start()
    {
        player = this.gameObject;

        stat = player.GetComponent <StatCollectionClass>();

        psg = player.GetComponent <PlayerStateGUI> ();

        quest = player.GetComponent <All_Quests> ();
    }
Esempio n. 2
0
    // 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> ();
    }
Esempio n. 3
0
    void Start()
    {
        player = this.gameObject;

        stat = player.GetComponent<StatCollectionClass >();

        skill = player.GetComponent<SkillTree >();

        quest = player.GetComponent<All_Quests> ();

        ps = player.GetComponent<PlayerStateGUI>();
    }
Esempio n. 4
0
    // 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> ();
    }
Esempio n. 5
0
 // Use this for initialization
 void Start()
 {
     rb2D = GetComponent <Rigidbody2D>();
     playerStateGUIScript = FindObjectOfType <PlayerStateGUI>();
 }
Esempio n. 6
0
    // 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>();
    }