Exemplo n.º 1
0
    private void Update()
    {
        player    = GameObject.FindWithTag("PlayerControl").GetComponent <playerController>();
        inventory = GameObject.FindGameObjectWithTag("Player").GetComponentInChildren <inventorySystem>();
        LSystem   = GameObject.FindWithTag("GameController").GetComponent <lifeSystem>();
        if (isOpen == true & anim != null)
        {
            anim.SetBool("isOpen", true);
            IC.SetActive(false);
        }
        if (isOpen == true)
        {
            IC.SetActive(false);
        }
        if (inventory != null)
        {
            inventOn = true;
        }
        else
        {
            inventOn = false;
        }

        if (thisIsItemVariant == true)
        {
            this.gameObject.tag = itemArray[random].tag;
        }
        else if (thisIsItemVariant == false)
        {
            this.gameObject.tag = itemButton.tag;
        }
        Debug.Log(randomR);
        Debug.Log(this.gameObject.tag);
    }
Exemplo n.º 2
0
    private void Start()
    {
        scm      = GameObject.FindWithTag("GameController").GetComponent <SCM>();
        LS       = GameObject.FindWithTag("GameController").GetComponent <lifeSystem>();
        lManager = GameObject.FindWithTag("levelManager").GetComponent <levelManager>();

        if (lManager.level2)
        {
            cPanel  = GameObject.FindWithTag("jerigenMinyak").GetComponent <controlPanel>();
            cPanel2 = GameObject.FindWithTag("pipa").GetComponent <controlPanel>();
        }
    }
Exemplo n.º 3
0
 private void Start()
 {
     scm = GameObject.FindWithTag("GameController").GetComponent <SCM>();
     LS  = GameObject.FindWithTag("GameController").GetComponent <lifeSystem>();
 }
Exemplo n.º 4
0
 private void Start()
 {
     ls = GameObject.Find("gameSceneController").GetComponent <lifeSystem>();
     DM = GameObject.FindWithTag("DialogueM");
 }
Exemplo n.º 5
0
 private void Start()
 {
     ls = GameObject.Find("gameSceneController").GetComponent <lifeSystem>();
 }