Пример #1
0
    public CCharacterState GetState(string StateName, CPlayer Player)
    {
        IntPtr          cPtr = testPINVOKE.CCharacterStateManager_GetState__SWIG_2(swigCPtr, StateName, CPlayer.getCPtr(Player));
        CCharacterState ret  = (cPtr == IntPtr.Zero) ? null : new CCharacterState(cPtr, false);

        return(ret);
    }
Пример #2
0
    public CCharacterState GetState(E_PLAYER_STATE Type, CPlayer Player)
    {
        IntPtr          cPtr = testPINVOKE.CCharacterStateManager_GetState__SWIG_1(swigCPtr, (int)Type, CPlayer.getCPtr(Player));
        CCharacterState ret  = (cPtr == IntPtr.Zero) ? null : new CCharacterState(cPtr, false);

        return(ret);
    }
Пример #3
0
    public CCharacterState GetCharacterState()
    {
        IntPtr          cPtr = testPINVOKE.CPlayer_GetCharacterState(swigCPtr);
        CCharacterState ret  = (cPtr == IntPtr.Zero) ? null : new CCharacterState(cPtr, false);

        return(ret);
    }
Пример #4
0
    private void Awake()
    {
        pv          = GetComponent <PhotonView>();
        cState      = GetComponent <CCharacterState>();
        aniCtrl     = GetComponent <CAnimaitonControl>();
        blockButton = GameObject.Find("BlockButton").GetComponent <Button>();

        blockButton.onClick.AddListener(BlockRPC);
    }
Пример #5
0
    protected CCharacterState _monsterState; // 몬스터 상태 컴포넌트 참조

    protected virtual void Awake()
    {
        // 에니메이터 컴포넌트 참조
        _animator = GetComponent <Animator>();
        // 몬스터 상태 컴포넌트 참조
        _monsterState = GetComponent <CCharacterState>();
        // 공격 위치 참조
        _attackPoint = transform.Find("AttackPoint");
    }
Пример #6
0
    public CCharacterState GetState(E_PLAYER_STATE Type, CPlayer Player, SWIGTYPE_p_u32 Level)
    {
        IntPtr          cPtr = testPINVOKE.CCharacterStateManager_GetState__SWIG_0(swigCPtr, (int)Type, CPlayer.getCPtr(Player), SWIGTYPE_p_u32.getCPtr(Level));
        CCharacterState ret  = (cPtr == IntPtr.Zero) ? null : new CCharacterState(cPtr, false);

        if (testPINVOKE.SWIGPendingException.Pending)
        {
            throw testPINVOKE.SWIGPendingException.Retrieve();
        }
        return(ret);
    }
Пример #7
0
    private void Awake()
    {
        tr       = GetComponent <Transform>();
        aniCtrl  = GetComponent <CAnimaitonControl>();
        camPivot = GameObject.Find("CamPivot").GetComponent <Transform>();
        cState   = GetComponent <CCharacterState>();
        pv       = GetComponent <PhotonView>();
        rigid    = GetComponent <Rigidbody>();

        pv.synchronization       = ViewSynchronization.UnreliableOnChange;
        pv.ObservedComponents[0] = this;

        currPos = tr.position;
        currRot = tr.rotation;
    }
Пример #8
0
    private void Awake()
    {
        tr      = GetComponent <Transform>();
        nvAgent = GetComponent <NavMeshAgent>();
        cState  = GetComponent <CCharacterState>();
        aniCtrl = GetComponent <CAnimaitonControl>();
        pv      = GetComponent <PhotonView>();
        cCtrl   = GetComponent <CharacterController>();

        pv.synchronization       = ViewSynchronization.UnreliableOnChange;
        pv.ObservedComponents[0] = this;

        cState.state = CCharacterState.State.Move;

        currPos = tr.position;
        currRot = tr.rotation;
    }
Пример #9
0
    private void Awake()
    {
        tr       = GetComponent <Transform>();
        aniCtrl  = GetComponent <CAnimaitonControl>();
        camPivot = GameObject.Find("CamPivot").GetComponent <Transform>();
        cState   = GetComponent <CCharacterState>();
        pv       = GetComponent <PhotonView>();
        cCtrl    = GetComponent <CharacterController>();

        jumpButton = GameObject.Find("JumpButton").GetComponent <Button>();
        runButton  = GameObject.Find("RunButton").GetComponent <Button>();

        jumpButton.onClick.AddListener(Jump);
        runButton.onClick.AddListener(IsRunning);

        pv.synchronization       = ViewSynchronization.UnreliableOnChange;
        pv.ObservedComponents[0] = this;

        currPos = tr.position;
        currRot = tr.rotation;
    }
Пример #10
0
 private void Awake()
 {
     pv     = GetComponent <PhotonView>();
     cState = GetComponent <CCharacterState>();
 }
Пример #11
0
    protected Animator _animator;                       // 애니메이터

    protected virtual void Awake()
    {
        _characterState = GetComponent <CCharacterState>();
        _animator       = GetComponent <Animator>();
    }
Пример #12
0
 internal static HandleRef getCPtr(CCharacterState obj)
 {
     return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr);
 }
Пример #13
0
 private void Awake()
 {
     _monsterState = GetComponent <CCharacterState>();
     _attackPoint  = transform.Find("AttackPoint").transform;
 }