Exemple #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);
    }
Exemple #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);
    }
Exemple #3
0
    public CCharacterState GetCharacterState()
    {
        IntPtr          cPtr = testPINVOKE.CPlayer_GetCharacterState(swigCPtr);
        CCharacterState ret  = (cPtr == IntPtr.Zero) ? null : new CCharacterState(cPtr, false);

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

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

    protected virtual void Awake()
    {
        // 에니메이터 컴포넌트 참조
        _animator = GetComponent <Animator>();
        // 몬스터 상태 컴포넌트 참조
        _monsterState = GetComponent <CCharacterState>();
        // 공격 위치 참조
        _attackPoint = transform.Find("AttackPoint");
    }
Exemple #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);
    }
Exemple #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;
    }
Exemple #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;
    }
Exemple #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;
    }
Exemple #10
0
 private void Awake()
 {
     pv     = GetComponent <PhotonView>();
     cState = GetComponent <CCharacterState>();
 }
Exemple #11
0
    protected Animator _animator;                       // 애니메이터

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