Ejemplo n.º 1
0
    private void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }

        else if (instance != this)
        {
            Destroy(gameObject);
        }
    }
Ejemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        tutorialLightSphereNum = 0;
        hasGotLight            = false;
        hasblinked             = false;
        hasSpiderHiss          = false;
        lightSource            = TutorialWeakenLight.instance;
        dt = GetComponent <DialogueTrigger>();


        if (dt != null)
        {
            StartCoroutine(WaitAndStartConvo(1));
        }
    }
Ejemplo n.º 3
0
 // Use this for initialization
 void Start()
 {
     lightSource = TutorialWeakenLight.instance;
 }