예제 #1
0
    void Start()
    {
        palyer_script = GameObject.FindObjectOfType <Player_1stage>();
        actionCtrler  = GameObject.FindObjectOfType <ActionController_01>();

        switch (_type)
        {
        case 1:
            EventEndAnimationName = EventEndAnimationName1;
            EventTriggerName      = EventTriggerName1;
            //SoundManger.instance.PlaySound(OpenBoxSound);

            break;

        case 2:
            EventEndAnimationName = EventEndAnimationName2;
            EventTriggerName      = EventTriggerName2;
            // SoundManger.instance.PlaySound(ShackTreeSound);

            break;

        case 3:
            EventEndAnimationName = EventEndAnimationName3;
            EventTriggerName      = EventTriggerName3;
            //  SoundManger.instance.PlaySound(ShackTreeSound);
            break;

        default:
            break;
        }

        interAniManager_script = GameObject.FindObjectOfType <InteracttAniManager>();
    }
예제 #2
0
    void Start()
    {
        agent = GameObject.FindWithTag("Player").GetComponent <NavMeshAgent>();

        playerCtrler_script = GameObject.FindObjectOfType <Player_1stage>();
        actionCtrler        = GameObject.FindObjectOfType <ActionController_01>();

        interactAni_script = GetComponent <InteractionAnimation>();

        collider = GetComponent <Collider>();

        interAniManager_script = GameObject.FindObjectOfType <InteracttAniManager>();
    }