private void Awake() { uiMgr = GetComponent <C_UiEventMgr>(); animator = GetComponent <C_Animator>().animator; photonView = GetComponent <PhotonView>(); attackListener = GetComponent <C_AttackListener>(); }
private void Awake() { uiMgr = GetComponent <C_UiEventMgr>(); velocity = GetComponent <C_Velocity>(); photonView = GetComponent <PhotonView>(); attributes = GetComponent <C_Attributes>(); audioSource = GetComponent <AudioSource>(); }
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>(); }
public void Init(C_UiEventMgr eventMgr) { eventMgr.BindEvent(typeof(UiMsgs.Hit), Hit); eventMgr.BindEvent(typeof(UiMsgs.Spread), Spread); eventMgr.BindEvent(typeof(UiMsgs.Kill), Kill); eventMgr.BindEvent(typeof(UiMsgs.Assists), Assists); eventMgr.BindEvent(typeof(UiMsgs.Killer), Killer); eventMgr.BindEvent(typeof(UiMsgs.Dot), Dot); eventMgr.BindEvent(typeof(UiMsgs.Blood), Blood); }
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>(); }
// Use this for initialization void Awake() { velocity = GetComponentInParent <C_Velocity>(); if (!velocity.isLocalPlayer) { this.enabled = false; return; } uiMgr = GetComponentInParent <C_UiEventMgr>(); weaponAttribute = GetComponent <WeaponAttribute>(); weaponAttribute.OnFire = Reset; }
// Use this for initialization void Awake() { velocity = GetComponentInParent <C_Velocity>(); if (!velocity.isLocalPlayer) { this.enabled = false; return; } myCamera = GetComponentInParent <C_Camera>(); weaponAttribute = GetComponent <WeaponAttribute>(); occlusionPoint = GetComponentInParent <C_WeaponHandle>().OcclusionPoint; uiMgr = GetComponentInParent <C_UiEventMgr>(); }
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); }
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(); }
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>(); }
public void Init(C_UiEventMgr eventMgr) { eventMgr.BindEvent(typeof(UiMsgs.Hp), RefreshHp); eventMgr.BindEvent(typeof(UiMsgs.Ammo), RefreshAmmo); eventMgr.BindEvent(typeof(UiMsgs.WeaponCut), SetWeaponCut); }
public void Init(C_Attributes attributes, C_UiEventMgr eventMgr) { nameText.color = (attributes.camp == Battle.localPlayerCamp) ? friendColor : enemyColor; eventMgr.BindEvent(typeof(UiMsgs.Hp), RefreshHp); }