コード例 #1
0
    void Start()
    {
        particleRing = Ring_Particle.GetComponentInChildren <ParticleSystem>();

        item_layerMask = (1 << LayerMask.NameToLayer("Item")) + (1 << LayerMask.NameToLayer("Doll"));

        //배치퍼즐
        location_layerMask     = (1 << LayerMask.NameToLayer("Display"));
        displayManager_script  = GameObject.FindObjectOfType <DisplayManager_2stage>();
        displayManager_script2 = GameObject.FindObjectOfType <DisplayManager_3stage>();

        displayManager_script2.enabled = false;

        actionController_3stage_script = FindObjectOfType <ActionController_03>();

        //손전등
        FlashlightItem.SetActive(false);
        flash_script         = FlashlightItem.GetComponent <Flashlight_PRO>();
        flash_script.enabled = false;
        flash_end            = FindObjectOfType <OnTrigger_Flash>();

        //모닥불
        Fire_script = GameObject.FindObjectOfType <AddSoundManager>();

        //라이트
        _lightOn_script = GameObject.FindObjectOfType <LightOn_3stage>();

        //외곽선
        OutlineController = GameObject.FindObjectOfType <DrawOutline_HJ>();

        //웬디
        wendyAI_Script = GameObject.FindObjectOfType <WendyAI>();

        //장애물,벽
        obstacleReader_script = GameObject.FindObjectOfType <ObstacleReader>();

        // 쪽지 매니저
        notemager = FindObjectOfType <NoteManger>();

        //지하실
        _cellarManager = GameObject.FindObjectOfType <Cellar_Manager>();

        //지하실 보기
        _cellarDoor_script = GameObject.FindObjectOfType <CellarDoorCollider>();

        //지하실쳐다봐야열리게
        lookingBasement_script = GameObject.FindObjectOfType <LookingBasement>();
    }
コード例 #2
0
ファイル: WendyAI.cs プロジェクト: ailoving00/_Wendy
    private bool once_ring = true; // 최초 접촉 검사

    private void Awake()
    {
        _agent    = GetComponent <NavMeshAgent>();
        _animator = _modeling.GetComponent <Animator>();
        //  event_ringParticle = Ring_Particle.GetComponentInChildren<ParticleSystem>();
        // - 상태 초기화 : 지하실에서 놀고 있는 애니메이션
        SetState(new Wendy_PlayState());
        _agent.updateRotation = false;

        _rot_dir = Vector3.zero;

        boxcoll    = GetComponent <Collider>();
        spherecoll = GetComponent <SphereCollider>();

        gameOver_script  = GameObject.FindObjectOfType <Cellar_Wendy>();
        gameOver_script2 = GameObject.FindObjectOfType <Cellar_Manager>();
    }
コード例 #3
0
 // Start is called before the first frame update
 void Start()
 {
     timeover.gameObject.SetActive(false);
     cellar_       = FindObjectOfType <Cellar_Manager>();
     gameoverStart = FindObjectOfType <GameOverManger>();
 }