Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        //scares triggers
        alreadyTriggered = false;
        first_Trig       = false; //
        jumpScare_Trig   = false; //
        runThrough_Trig  = false; //
        stairs_Trig      = false; //
        ball_Trig        = false; //

        if (hasScares)
        {
            //initiallizing jumpScares to be of type SCARES.CS
            scareToPerform = scares.GetComponent <Scares> ();
        }
        ThrowScript = GameObject.Find("ThrowTrigger").GetComponent <ThrowThis>();
    }
Esempio n. 2
0
    // Use this for initialization
    void Start()
    {
        //scares triggers
        alreadyTriggered = false;
        first_Trig = false;//
        jumpScare_Trig = false;//
        runThrough_Trig = false;//
        stairs_Trig = false;//
        ball_Trig = false;//

        if (hasScares) {
            //initiallizing jumpScares to be of type SCARES.CS
            scareToPerform = scares.GetComponent<Scares> ();
        }
        ThrowScript = GameObject.Find("ThrowTrigger").GetComponent<ThrowThis>();
    }