예제 #1
0
    private void OnEnable()
    {
        var stateMgr = GetComponent <CS_StateMgr>();

        stateMgr.RegState(_name, this);

        animator = GetComponent <C_Animator>();
        velocity = GetComponent <C_Velocity>();
    }
예제 #2
0
 private void Awake()
 {
     _camera              = GetComponent <C_Camera>();
     _animator            = GetComponent <C_Animator>();
     _velocity            = GetComponent <C_Velocity>();
     _stateMgr            = GetComponent <CS_StateMgr>();
     _attributes          = GetComponent <C_Attributes>();
     _iKManager           = GetComponent <C_IKManager>();
     _audioSource         = GetComponent <AudioSource>();
     _characterController = GetComponent <CharacterController>();
 }
예제 #3
0
    public override void Init(GameObject obj)
    {
        _animator     = obj.GetComponent <C_Animator>();
        _velocity     = obj.GetComponent <C_Velocity>();
        _iKManager    = obj.GetComponent <C_IKManager>();
        _weaponHandle = obj.GetComponent <C_WeaponHandle>();
        _uiMgr        = obj.GetComponent <C_UiEventMgr>();
        _photonView   = obj.GetComponent <PhotonView>();

        _audioSource     = GetComponent <AudioSource>();
        _weaponAttribute = GetComponent <WeaponAttribute>();
    }
예제 #4
0
    private void OnEnable()
    {
        _camera              = GetComponent <C_Camera>();
        _animator            = GetComponent <C_Animator>();
        _velocity            = GetComponent <C_Velocity>();
        _attributes          = GetComponent <C_Attributes>();
        _audioSource         = GetComponent <AudioSource>();
        _characterController = GetComponent <CharacterController>();

        var stateMgr = GetComponent <CS_StateMgr>();

        //_name = "aim";
        stateMgr.RegState(_name, this);
    }
예제 #5
0
    private void Awake()
    {
        _uiMgr               = GetComponent <C_UiEventMgr>();
        _weaponHandle        = GetComponent <C_WeaponHandle>();
        _camera              = GetComponent <C_Camera>();
        _animator            = GetComponent <C_Animator>();
        _velocity            = GetComponent <C_Velocity>();
        _attributes          = GetComponent <C_Attributes>();
        _audioSource         = GetComponent <AudioSource>();
        _characterController = GetComponent <CharacterController>();

        var stateMgr = GetComponent <CS_StateMgr>();

        //_name = "aim";
        stateMgr.RegState(_name, this);
    }
예제 #6
0
    private void OnEnable()
    {
        anim                = GetComponent <C_Animator>();
        uiMgr               = GetComponent <C_UiEventMgr>();
        myCamera            = GetComponent <C_Camera>();
        velocity            = GetComponent <C_Velocity>();
        iKManager           = GetComponent <C_IKManager>();
        attributes          = GetComponent <C_Attributes>();
        weaponHandle        = GetComponent <C_WeaponHandle>();
        bornProtector       = GetComponent <C_BornProtector>();
        attackListener      = GetComponent <C_AttackListener>();
        avatarMeshRanderMgr = GetComponentInChildren <AvatarMeshRanderMgr>();

        var stateMgr = GetComponent <CS_StateMgr>();

        //_name = "aim";
        stateMgr.RegState(_name, this);

        //meshRenderers = GetComponentsInChildren<MeshRenderer>();
        //skinnedMeshRenderers = GetComponentsInChildren<SkinnedMeshRenderer>();
    }