Inheritance: MonoBehaviour
Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        cs = GameObject.Find("CandleSpawner").GetComponent <CandleSpawner>();
        cs.Subscribe(this);

        transform.Translate(new Vector3(0, 10, 0));
        //StartCoroutine(GetCandles());
    }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        interaction = GameObject.Find("InteractionText");
        text        = interaction.GetComponent <Text>();

        cs = GameObject.Find("CandleSpawner").GetComponent <CandleSpawner>();

        ci = GameObject.Find("CandleInteraction").GetComponent <CandleInteraction>();

        index      = (Int32.Parse(gameObject.name.Substring(gameObject.name.Length - 1))) - 1;
        isLit      = true;
        prev       = false;
        lastChange = false;
        isHidden   = false;
        active     = false;
        tempText   = "";
        //WaitForBard();
    }