예제 #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>();
    }
예제 #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>();
    }