Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        dialogue       = this.GetComponent <DialogueScript>();
        npcCollider    = this.GetComponent <CircleCollider2D>();
        interactButton = this.GetComponent <InteractButtonScript>();

        airGolem   = AirGolem.GetComponent <GolemBehaviourScript>();
        earthGolem = EarthGolem.GetComponent <GolemBehaviourScript>();
        waterGolem = WaterGolem.GetComponent <GolemBehaviourScript>();
        fireGolem  = FireGolem.GetComponent <GolemBehaviourScript>();
    }
Esempio n. 2
0
    void Start()
    {
        dialogue = npcShout1.GetComponent <DialogueScript>();

        npcCollider         = this.GetComponent <CircleCollider2D>();
        npcCollider.enabled = false;

        dialogue2      = this.GetComponent <DialogueScript>();
        interactButton = this.GetComponent <InteractButtonScript>();

        floor1 = floorPad1.GetComponent <SteppedScript>();
        floor2 = floorPad2.GetComponent <SteppedScript>();
        floor3 = floorPad3.GetComponent <SteppedScript>();
        floor4 = floorPad4.GetComponent <SteppedScript>();

        tutorialBox.SetActive(false);
    }