예제 #1
0
    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);
        }
    }
예제 #2
0
 void Awake()
 {
     //GetComponent<StaminaMeter>().Init();
     active = this;
 }