Наследование: MonoBehaviour
Пример #1
0
    //connect to each script
    void Start()
    {
        player = this.gameObject;

        stat = player.GetComponent <StatCollectionClass>();

        psg = player.GetComponent <PlayerStateGUI> ();

        quest = player.GetComponent <All_Quests> ();
    }
Пример #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> ();
    }
Пример #3
0
    void Start()
    {
        player = this.gameObject;

        stat = player.GetComponent<StatCollectionClass >();

        skill = player.GetComponent<SkillTree >();

        quest = player.GetComponent<All_Quests> ();

        ps = player.GetComponent<PlayerStateGUI>();
    }
Пример #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> ();
    }
Пример #5
0
 // Use this for initialization
 void Start()
 {
     rb2D = GetComponent <Rigidbody2D>();
     playerStateGUIScript = FindObjectOfType <PlayerStateGUI>();
 }
Пример #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>();
    }