コード例 #1
0
    public void TriggerDarkness()
    {
        GameObject     siljaGO  = GameObject.FindGameObjectWithTag("Player");
        SiljaBehaviour siljaBeh = siljaGO.GetComponent <SiljaBehaviour>();

        Transitioner transitionContoller = Component.FindObjectOfType(typeof(Transitioner)) as Transitioner;

        transitionContoller.doTransition(true);

//		siljaBeh.LookAtPointFP(false, null);

        // COMMENTED AS I THINK THERE IS SOME DIFFERENCE

        //firstPersonCamera.gameObject.SetActive(false);
        //charMotor.enabled = true;
        //transform.gameObject.GetComponent<MovementController>().canMove = true;
        //camInput.enabled = true;
    }