예제 #1
0
 public override void Init(GameObject obj)
 {
     _velocity        = obj.GetComponent <C_Velocity>();
     _iKManager       = obj.GetComponent <C_IKManager>();
     _weaponHandle    = obj.GetComponent <C_WeaponHandle>();
     _weaponAttribute = GetComponent <WeaponAttribute>();
     _photonView      = obj.GetComponent <PhotonView>();
 }
예제 #2
0
    public override void Init(GameObject obj)
    {
        _velocity     = obj.GetComponent <C_Velocity>();
        _iKManager    = obj.GetComponent <C_IKManager>();
        _weaponHandle = obj.GetComponent <C_WeaponHandle>();
        _camera       = obj.GetComponent <C_Camera>();
        _uiMgr        = obj.GetComponent <C_UiEventMgr>();

        _weaponAttribute = GetComponent <WeaponAttribute>();
    }
예제 #3
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>();
 }
예제 #4
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>();
    }
예제 #5
0
    public override void Init(GameObject obj)
    {
        _uiMgr        = obj.GetComponent <C_UiEventMgr>();
        _camera       = obj.GetComponent <C_Camera>();
        _velocity     = obj.GetComponent <C_Velocity>();
        _iKManager    = obj.GetComponent <C_IKManager>();
        _photonView   = obj.GetComponent <PhotonView>();
        _attributes   = obj.GetComponent <C_Attributes>();
        _weaponHandle = obj.GetComponent <C_WeaponHandle>();
        _battleMgr    = obj.GetComponent <C_BattleMgr>();

        _audio           = GetComponent <AudioSource>();
        _weaponAttribute = GetComponent <WeaponAttribute>();

        timer = new Timer();
    }
예제 #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>();
    }