public void SendShot(RaycastHit hit, Vector4 dmgInfo) { //Debug.Log(hit.collider.gameObject.name); RigidController rc = hit.collider.gameObject.GetComponentInParent <RigidController>(); if (rc) { //Debug.Log("Sending shot to player!"); rc.RpcApplyDamage(dmgInfo); } }
void Awake() { //GetComponent<StaminaMeter>().Init(); active = this; }