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); }
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); }
public CCharacterState GetCharacterState() { IntPtr cPtr = testPINVOKE.CPlayer_GetCharacterState(swigCPtr); CCharacterState ret = (cPtr == IntPtr.Zero) ? null : new CCharacterState(cPtr, false); return(ret); }
private void Awake() { pv = GetComponent <PhotonView>(); cState = GetComponent <CCharacterState>(); aniCtrl = GetComponent <CAnimaitonControl>(); blockButton = GameObject.Find("BlockButton").GetComponent <Button>(); blockButton.onClick.AddListener(BlockRPC); }
protected CCharacterState _monsterState; // 몬스터 상태 컴포넌트 참조 protected virtual void Awake() { // 에니메이터 컴포넌트 참조 _animator = GetComponent <Animator>(); // 몬스터 상태 컴포넌트 참조 _monsterState = GetComponent <CCharacterState>(); // 공격 위치 참조 _attackPoint = transform.Find("AttackPoint"); }
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); }
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; }
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; }
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; }
private void Awake() { pv = GetComponent <PhotonView>(); cState = GetComponent <CCharacterState>(); }
protected Animator _animator; // 애니메이터 protected virtual void Awake() { _characterState = GetComponent <CCharacterState>(); _animator = GetComponent <Animator>(); }
internal static HandleRef getCPtr(CCharacterState obj) { return((obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr); }
private void Awake() { _monsterState = GetComponent <CCharacterState>(); _attackPoint = transform.Find("AttackPoint").transform; }