Exemple #1
0
    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>();
    }
Exemple #2
0
 void Start()
 {
     CellarSoundScript = FindObjectOfType <AddSoundManager>();
     WendyScript       = FindObjectOfType <Cellar_Wendy>();
     MoveStart();
 }