public static HealthConsciousMessage SendToAll(GameObject entityToUpdate, ConsciousState consciousState)
    {
        HealthConsciousMessage msg = new HealthConsciousMessage
        {
            EntityToUpdate = entityToUpdate.GetComponent <NetworkIdentity>().netId,
            ConsciousState = consciousState
        };

        msg.SendToAll();
        return(msg);
    }
Beispiel #2
0
    /// ---------------------------
    /// SEND TO ALL SERVER --> CLIENT
    /// ---------------------------

    void SendConsciousUpdate()
    {
        HealthConsciousMessage.SendToAll(gameObject, livingHealthBehaviour.ConsciousState);
    }
 void SendConsciousUpdate(GameObject requestor)
 {
     HealthConsciousMessage.Send(requestor, gameObject, livingHealthBehaviour.ConsciousState);
 }