Пример #1
0
    // Players need to be told to apply their own explosive force to ensure they get knocked back
    void SyncPlayer(Rigidbody player)
    {
        PlayerControlScript script = player.GetComponent <PlayerControlScript>();

        if (script)
        {
            // Make the player apply it's own explosive force to ensure it reacts accordingly
            script.ApplyExplosiveForceOverNetwork(transform.position.x, transform.position.y, m_aoeRange, m_aoeMinExplosiveForce, m_aoeMaxExplosiveForce);
        }
    }